[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120719113810.GM1869@secunet.com>
Date: Thu, 19 Jul 2012 13:38:10 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 09/15] ipv4: Cache output routes in fib_info nexthops.
On Wed, Jul 18, 2012 at 11:24:04AM -0700, David Miller wrote:
> +
> +static void rt_bind_exception(struct rtable *rt, struct fib_nh_exception *fnhe)
> +{
> + if (fnhe->fnhe_pmtu) {
> + unsigned long expires = fnhe->fnhe_expires;
> + unsigned long diff = jiffies - expires;
This should be diff = expires - jiffies
With that changed, everything seems to work fine :)
> +
> + if (time_before(jiffies, expires)) {
> + rt->rt_pmtu = fnhe->fnhe_pmtu;
> + dst_set_expires(&rt->dst, diff);
> }
> }
> + if (fnhe->fnhe_gw) {
> + rt->rt_flags |= RTCF_REDIRECTED;
> + rt->rt_gateway = fnhe->fnhe_gw;
> + }
> + fnhe->fnhe_stamp = jiffies;
> }
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists