From: Gao Feng Date: Fri, 1 Dec 2017 01:58:42 +0000 (+0800) Subject: ipvlan: Add the skb->mark as flow4's member to lookup route X-Git-Tag: v4.1.50~133 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f2014cf430fb430c0655e06b5195f25abf3e9e82;p=users%2Fdwmw2%2Flinux.git ipvlan: Add the skb->mark as flow4's member to lookup route [ 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 --- diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c index c30b5c300c05f..f3cd85ecd795a 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 *skb) .flowi4_oif = dev_get_iflink(dev), .flowi4_tos = RT_TOS(ip4h->tos), .flowi4_flags = FLOWI_FLAG_ANYSRC, + .flowi4_mark = skb->mark, .daddr = ip4h->daddr, .saddr = ip4h->saddr, };