LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH] Fix ip_vs_lblcr_full_check to remove unused entries instead of u

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: [PATCH] Fix ip_vs_lblcr_full_check to remove unused entries instead of used entries.
Cc: lvs-devel@xxxxxxxxxxxxxxx
From: Simon Kirby <sim@xxxxxxxxxx>
Date: Thu, 5 Nov 2009 00:37:16 -0800
Tested with real packets -- seems to work.

Signed-off-by: Simon Kirby <sim@xxxxxxxxxx>

---
 net/netfilter/ipvs/ip_vs_lblcr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/ipvs/ip_vs_lblcr.c b/net/netfilter/ipvs/ip_vs_lblcr.c
index 715b57f..937743f 100644
--- a/net/netfilter/ipvs/ip_vs_lblcr.c
+++ b/net/netfilter/ipvs/ip_vs_lblcr.c
@@ -432,7 +432,7 @@ static inline void ip_vs_lblcr_full_check(struct 
ip_vs_service *svc)
 
                write_lock(&svc->sched_lock);
                list_for_each_entry_safe(en, nxt, &tbl->bucket[j], list) {
-                       if 
(time_after(en->lastuse+sysctl_ip_vs_lblcr_expiration,
+                       if 
(time_before(en->lastuse+sysctl_ip_vs_lblcr_expiration,
                                       now))
                                continue;
 
-- 
1.6.5.2
--
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>