[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LFD.2.00.1301171039500.1685@ja.ssi.bg>
Date: Thu, 17 Jan 2013 10:41:44 +0200 (EET)
From: Julian Anastasov <ja@....bg>
To: Steffen Klassert <steffen.klassert@...unet.com>
cc: David Miller <davem@...emloft.net>, timo.teras@....fi,
luky-37@...mail.com, pupilla@...ero.it, netdev@...r.kernel.org
Subject: Re: [PATCH 2/2] ipv4: Don't update the pmtu on mtu locked routes
Hello,
On Thu, 17 Jan 2013, Steffen Klassert wrote:
> Routes with locked mtu should not use learned pmtu informations,
> so do not update the pmtu on these routes.
>
> Reported-by: Julian Anastasov <ja@....bg>
> Signed-off-by: Steffen Klassert <steffen.klassert@...unet.com>
> ---
> net/ipv4/route.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/net/ipv4/route.c b/net/ipv4/route.c
> index 6e4a89c..259cbee 100644
> --- a/net/ipv4/route.c
> +++ b/net/ipv4/route.c
> @@ -912,6 +912,9 @@ static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu)
> struct dst_entry *dst = &rt->dst;
> struct fib_result res;
>
> + if (dst_metric_locked(dst, RTAX_MTU))
> + return;
> +
> if (dst->dev->mtu < mtu)
> return;
>
> --
> 1.7.9.5
Thanks
--
Julian Anastasov <ja@....bg>
--
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