Return-Path: Received: from omzsmtpe03.verizonbusiness.com ([199.249.25.208]:12075 "EHLO omzsmtpe03.verizonbusiness.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbdLBPyb (ORCPT ); Sat, 2 Dec 2017 10:54:31 -0500 From: alexander.levin@verizon.com Cc: Keefe Liu , "David S . Miller" , alexander.levin@verizon.com To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: [PATCH AUTOSEL for 4.4 19/20] ipvlan: fix ipv6 outbound device Date: Sat, 2 Dec 2017 15:53:01 +0000 Message-ID: <20171202155243.7774-19-alexander.levin@verizon.com> References: <20171202155243.7774-1-alexander.levin@verizon.com> In-Reply-To: <20171202155243.7774-1-alexander.levin@verizon.com> Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: From: Keefe Liu [ Upstream commit ca29fd7cce5a6444d57fb86517589a1a31c759e1 ] 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 Acked-by: Mahesh Bandewar Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- 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_c= ore.c index 8c48bb2a94ea..af827faec7fe 100644 --- a/drivers/net/ipvlan/ipvlan_core.c +++ b/drivers/net/ipvlan/ipvlan_core.c @@ -388,7 +388,7 @@ static int ipvlan_process_v6_outbound(struct sk_buff *s= kb) struct dst_entry *dst; int err, ret =3D NET_XMIT_DROP; struct flowi6 fl6 =3D { - .flowi6_iif =3D dev->ifindex, + .flowi6_oif =3D dev->ifindex, .daddr =3D ip6h->daddr, .saddr =3D ip6h->saddr, .flowi6_flags =3D FLOWI_FLAG_ANYSRC, --=20 2.11.0