projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af57b7f
)
ipvlan: Add the skb->mark as flow4's member to lookup route
author
Gao Feng
<gfree.wind@vip.163.com>
Fri, 1 Dec 2017 01:58:42 +0000
(09:58 +0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 3 Dec 2017 14:44:02 +0000
(09:44 -0500)
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 <gfree.wind@vip.163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ipvlan/ipvlan_core.c
b/drivers/net/ipvlan/ipvlan_core.c
index
11c1e79
..
77cc4fb
100644
(file)
--- a/
drivers/net/ipvlan/ipvlan_core.c
+++ b/
drivers/net/ipvlan/ipvlan_core.c
@@
-393,6
+393,7
@@
static int ipvlan_process_v4_outbound(struct sk_buff *skb)
.flowi4_oif = dev->ifindex,
.flowi4_tos = RT_TOS(ip4h->tos),
.flowi4_flags = FLOWI_FLAG_ANYSRC,
+ .flowi4_mark = skb->mark,
.daddr = ip4h->daddr,
.saddr = ip4h->saddr,
};