netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipv6: fix ecmp lookup on forwarding path
@ 2013-06-13 14:04 Nicolas Dichtel
  2013-06-14  0:38 ` David Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Dichtel @ 2013-06-13 14:04 UTC (permalink / raw)
  To: davem; +Cc: netdev, dingzhi, Nicolas Dichtel

From: dingzhi <zhi.ding@6wind.com>

There is no reason to skip ECMP lookup when oif is specified. For example, when
a packet is forwarded, the input interface is specified.

Signed-off-by: dingzhi <zhi.ding@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 net/ipv6/route.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index ad0aa6b..9a6d637 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -742,7 +742,7 @@ static struct rt6_info *ip6_pol_route_lookup(struct net *net,
 restart:
 	rt = fn->leaf;
 	rt = rt6_device_match(net, rt, &fl6->saddr, fl6->flowi6_oif, flags);
-	if (rt->rt6i_nsiblings && fl6->flowi6_oif == 0)
+	if (rt->rt6i_nsiblings)
 		rt = rt6_multipath_select(rt, fl6);
 	BACKTRACK(net, &fl6->saddr);
 out:
@@ -875,7 +875,7 @@ restart_2:
 
 restart:
 	rt = rt6_select(fn, oif, strict | reachable);
-	if (rt->rt6i_nsiblings && oif == 0)
+	if (rt->rt6i_nsiblings)
 		rt = rt6_multipath_select(rt, fl6);
 	BACKTRACK(net, &fl6->saddr);
 	if (rt == net->ipv6.ip6_null_entry ||
-- 
1.8.2.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-07-01 20:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-13 14:04 [PATCH] ipv6: fix ecmp lookup on forwarding path Nicolas Dichtel
2013-06-14  0:38 ` David Miller
2013-06-14  8:32   ` [PATCH v2] ipv6: fix ecmp lookup when oif is specified Nicolas Dichtel
2013-06-24  1:40     ` David Miller
2013-06-24 16:44       ` Nicolas Dichtel
2013-06-26 22:19         ` David Miller
2013-06-28 15:35           ` [PATCH v3] " Nicolas Dichtel
2013-07-01 20:27             ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).