[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140326155047.GG22086@order.stressinduktion.org>
Date: Wed, 26 Mar 2014 16:50:47 +0100
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
To: Michal Kubecek <mkubecek@...e.cz>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
James Morris <jmorris@...ei.org>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Patrick McHardy <kaber@...sh.net>
Subject: Re: [PATCH net-next v3] ipv6: do not overwrite inetpeer metrics prematurely
On Wed, Mar 26, 2014 at 04:42:45PM +0100, Michal Kubecek wrote:
> diff --git a/net/ipv6/route.c b/net/ipv6/route.c
> index fba54a4..b6dda6a 100644
> --- a/net/ipv6/route.c
> +++ b/net/ipv6/route.c
> @@ -149,8 +149,10 @@ static u32 *ipv6_cow_metrics(struct dst_entry *dst, unsigned long old)
> unsigned long prev, new;
>
> p = peer->metrics;
> - if (inet_metrics_new(peer))
> + if (inet_metrics_new(peer) || (dst->flags | DST_KEEP_METRICS)) {
> memcpy(p, old_p, sizeof(u32) * RTAX_MAX);
> + dst->flags &= ~DST_KEEP_METRICS;
> + }
The (dst->flags | DST_KEEP_METRICS) looks very suspicious. ;)
Bye,
Hannes
--
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