From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Kirby Subject: [PATCH] Fix ip_vs_lblcr_full_check to remove unused entries instead of used entries. Date: Thu, 5 Nov 2009 00:37:16 -0800 Message-ID: <20091105083716.GE5244@hostway.ca> References: <20091105003801.GA20042@hostway.ca> <20091105013511.GA12797@verge.net.au> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20091105013511.GA12797@verge.net.au> Sender: lvs-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Simon Horman Cc: lvs-devel@vger.kernel.org Tested with real packets -- seems to work. Signed-off-by: Simon Kirby --- 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