LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH 11/12] ipvs: inherit forwarding method in backup

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: [PATCH 11/12] ipvs: inherit forwarding method in backup
Cc: lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx
From: Julian Anastasov <ja@xxxxxx>
Date: Sun, 17 Oct 2010 16:43:36 +0300 (EEST)

        Connections in backup server should inherit the
forwarding method from real server. It is a way to fix a
problem where the forwarding method in backup connection
is damaged by logical OR operation with the real server's
connection flags. And the change is needed for setups
where the backup server uses different forwarding method
for the same real servers.

Signed-off-by: Julian Anastasov <ja@xxxxxx>
---

diff -urp nf-next-2.6-a91fd26/linux/net/netfilter/ipvs/ip_vs_conn.c 
linux/net/netfilter/ipvs/ip_vs_conn.c
--- nf-next-2.6-a91fd26/linux/net/netfilter/ipvs/ip_vs_conn.c   2010-10-13 
22:22:35.000000000 +0300
+++ linux/net/netfilter/ipvs/ip_vs_conn.c       2010-10-16 21:00:44.819355693 
+0300
@@ -563,6 +563,8 @@ ip_vs_bind_dest(struct ip_vs_conn *cp, s
                 */
                if (!(cp->flags & IP_VS_CONN_F_TEMPLATE))
                        conn_flags &= ~IP_VS_CONN_F_INACTIVE;
+               /* connections inherit forwarding method from dest */
+               cp->flags &= ~IP_VS_CONN_F_FWD_MASK;
        }
        cp->flags |= conn_flags;
        cp->dest = dest;
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 11/12] ipvs: inherit forwarding method in backup, Julian Anastasov <=