From: Nicolas Dichtel Date: Thu, 1 Nov 2012 22:58:22 +0000 (+0000) Subject: ipv6/multipath: remove flag NLM_F_EXCL after the first nexthop X-Git-Tag: firefly_0821_release~3680^2~1480^2~467 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1a72418bd7f0edcb85c817964efd370254fe749d;p=firefly-linux-kernel-4.4.55.git ipv6/multipath: remove flag NLM_F_EXCL after the first nexthop fib6_add_rt2node() will reject the nexthop if this flag is set, so we perform the check only for the first nexthop. Signed-off-by: Nicolas Dichtel Signed-off-by: David S. Miller --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index c42650cf8d4d..9c7b5d800495 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2449,6 +2449,12 @@ beginning: goto beginning; } } + /* Because each route is added like a single route we remove + * this flag after the first nexthop (if there is a collision, + * we have already fail to add the first nexthop: + * fib6_add_rt2node() has reject it). + */ + cfg->fc_nlinfo.nlh->nlmsg_flags &= ~NLM_F_EXCL; rtnh = rtnh_next(rtnh, &remaining); }