From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bl2nam02on0107.outbound.protection.outlook.com ([104.47.38.107]:63680 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1032498AbeCAPhB (ORCPT ); Thu, 1 Mar 2018 10:37:01 -0500 From: Sasha Levin To: "stable@vger.kernel.org" , "stable-commits@vger.kernel.org" CC: Gao Feng , "David S . Miller" , Sasha Levin Subject: [added to the 4.1 stable tree] ipvlan: Add the skb->mark as flow4's member to lookup route Date: Thu, 1 Mar 2018 15:26:54 +0000 Message-ID: <20180301152116.1486-411-alexander.levin@microsoft.com> References: <20180301152116.1486-1-alexander.levin@microsoft.com> In-Reply-To: <20180301152116.1486-1-alexander.levin@microsoft.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: Gao Feng This patch has been added to the 4.1 stable tree. If you have any objections, please let us know. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [ Upstream commit a98a4ebc8c61d20f0150d6be66e0e65223a347af ] Current codes don't use skb->mark to assign flowi4_mark, it would make the policy route rule with fwmark doesn't work as expected. Signed-off-by: Gao Feng Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ipvlan/ipvlan_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_c= ore.c index c30b5c300c05..f3cd85ecd795 100644 --- a/drivers/net/ipvlan/ipvlan_core.c +++ b/drivers/net/ipvlan/ipvlan_core.c @@ -345,6 +345,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *s= kb) .flowi4_oif =3D dev_get_iflink(dev), .flowi4_tos =3D RT_TOS(ip4h->tos), .flowi4_flags =3D FLOWI_FLAG_ANYSRC, + .flowi4_mark =3D skb->mark, .daddr =3D ip4h->daddr, .saddr =3D ip4h->saddr, }; --=20 2.14.1