aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipvs
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ipvs')
-rw-r--r--net/ipv4/ipvs/ip_vs_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/ipvs/ip_vs_core.c b/net/ipv4/ipvs/ip_vs_core.c
index 27bef1d67aa7..5a7a81778b0b 100644
--- a/net/ipv4/ipvs/ip_vs_core.c
+++ b/net/ipv4/ipvs/ip_vs_core.c
@@ -1321,7 +1321,8 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb,
1321 * encorage the standby servers to update the connections timeout 1321 * encorage the standby servers to update the connections timeout
1322 */ 1322 */
1323 atomic_inc(&cp->in_pkts); 1323 atomic_inc(&cp->in_pkts);
1324 if ((ip_vs_sync_state & IP_VS_STATE_MASTER) && 1324 if (af == AF_INET &&
1325 (ip_vs_sync_state & IP_VS_STATE_MASTER) &&
1325 (((cp->protocol != IPPROTO_TCP || 1326 (((cp->protocol != IPPROTO_TCP ||
1326 cp->state == IP_VS_TCP_S_ESTABLISHED) && 1327 cp->state == IP_VS_TCP_S_ESTABLISHED) &&
1327 (atomic_read(&cp->in_pkts) % sysctl_ip_vs_sync_threshold[1] 1328 (atomic_read(&cp->in_pkts) % sysctl_ip_vs_sync_threshold[1]