LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: [PATCH] Fix ip_vs_lblcr_full_check to remove unused entries instead

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: Re: [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 01:43:58 -0800
D'oh.  Don't apply this -- the argument order makes the original correct.

Simon-

On Thu, Nov 05, 2009 at 12:37:16AM -0800, Simon Kirby wrote:

> 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>