[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171109120931.8620-1-liuqifa@huawei.com>
Date: Thu, 9 Nov 2017 20:09:31 +0800
From: <liuqifa@...wei.com>
To: <davem@...emloft.net>
CC: <maheshb@...gle.com>, <fgao@...ai8.com>,
<sainath.grandhi@...el.com>, <edumazet@...gle.com>,
<netdev@...r.kernel.org>
Subject: [PATCH] ipvlan: fix ipv6 outbound device
From: Keefe Liu <liuqifa@...wei.com>
When process the outbound packet of ipv6, we should assign the master
device to output device other than input device.
Signed-off-by: Keefe Liu <liuqifa@...wei.com>
---
drivers/net/ipvlan/ipvlan_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c
index 034ae4c..f2a7e92 100644
--- a/drivers/net/ipvlan/ipvlan_core.c
+++ b/drivers/net/ipvlan/ipvlan_core.c
@@ -409,7 +409,7 @@ static int ipvlan_process_v6_outbound(struct sk_buff *skb)
struct dst_entry *dst;
int err, ret = NET_XMIT_DROP;
struct flowi6 fl6 = {
- .flowi6_iif = dev->ifindex,
+ .flowi6_oif = dev->ifindex,
.daddr = ip6h->daddr,
.saddr = ip6h->saddr,
.flowi6_flags = FLOWI_FLAG_ANYSRC,
--
1.8.3.1
Powered by blists - more mailing lists