Commit 5a87feef authored by Gao Feng's avatar Gao Feng Committed by Greg Kroah-Hartman

ipvlan: Add the skb->mark as flow4's member to lookup route


[ Upstream commit a98a4ebc ]

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: default avatarGao Feng <gfree.wind@vip.163.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19ff1dfd
...@@ -353,6 +353,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *skb) ...@@ -353,6 +353,7 @@ static int ipvlan_process_v4_outbound(struct sk_buff *skb)
.flowi4_oif = dev->ifindex, .flowi4_oif = dev->ifindex,
.flowi4_tos = RT_TOS(ip4h->tos), .flowi4_tos = RT_TOS(ip4h->tos),
.flowi4_flags = FLOWI_FLAG_ANYSRC, .flowi4_flags = FLOWI_FLAG_ANYSRC,
.flowi4_mark = skb->mark,
.daddr = ip4h->daddr, .daddr = ip4h->daddr,
.saddr = ip4h->saddr, .saddr = ip4h->saddr,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment