diff options
-rw-r--r-- | net/netfilter/ipvs/ip_vs_conn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c index f562e630d35a..1c1bb309a955 100644 --- a/net/netfilter/ipvs/ip_vs_conn.c +++ b/net/netfilter/ipvs/ip_vs_conn.c | |||
@@ -585,11 +585,11 @@ ip_vs_bind_dest(struct ip_vs_conn *cp, struct ip_vs_dest *dest) | |||
585 | 585 | ||
586 | /* Update the connection counters */ | 586 | /* Update the connection counters */ |
587 | if (!(cp->flags & IP_VS_CONN_F_TEMPLATE)) { | 587 | if (!(cp->flags & IP_VS_CONN_F_TEMPLATE)) { |
588 | /* It is a normal connection, so increase the inactive | 588 | /* It is a normal connection, so modify the counters |
589 | connection counter because it is in TCP SYNRECV | 589 | * according to the flags, later the protocol can |
590 | state (inactive) or other protocol inacive state */ | 590 | * update them on state change |
591 | if ((cp->flags & IP_VS_CONN_F_SYNC) && | 591 | */ |
592 | (!(cp->flags & IP_VS_CONN_F_INACTIVE))) | 592 | if (!(cp->flags & IP_VS_CONN_F_INACTIVE)) |
593 | atomic_inc(&dest->activeconns); | 593 | atomic_inc(&dest->activeconns); |
594 | else | 594 | else |
595 | atomic_inc(&dest->inactconns); | 595 | atomic_inc(&dest->inactconns); |