]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
IVPS: Disable sync daemon for IPv6 connections
authorJulius Volz <juliusv@google.com>
Tue, 2 Sep 2008 13:55:50 +0000 (15:55 +0200)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Sep 2008 01:17:11 +0000 (11:17 +1000)
Disable the sync daemon for IPv6 connections, works only with IPv4 for now.

Signed-off-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/ipv4/ipvs/ip_vs_core.c

index 27bef1d67aa773487d7caaf40a3373054fb0faaa..5a7a81778b0b62a781b3d6a3da69e16c16ca31f8 100644 (file)
@@ -1321,7 +1321,8 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb,
         * encorage the standby servers to update the connections timeout
         */
        atomic_inc(&cp->in_pkts);
-       if ((ip_vs_sync_state & IP_VS_STATE_MASTER) &&
+       if (af == AF_INET &&
+           (ip_vs_sync_state & IP_VS_STATE_MASTER) &&
            (((cp->protocol != IPPROTO_TCP ||
               cp->state == IP_VS_TCP_S_ESTABLISHED) &&
              (atomic_read(&cp->in_pkts) % sysctl_ip_vs_sync_threshold[1]