* [PATCH net] ipvlan: Add the skb->mark as flow4's member to lookup route
@ 2017-12-01 1:58 gfree.wind
2017-12-03 14:44 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: gfree.wind @ 2017-12-01 1:58 UTC (permalink / raw)
To: davem, maheshb, netdev; +Cc: Gao Feng
From: Gao Feng <gfree.wind@vip.163.com>
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>
---
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_core.c
index 11c1e79..77cc4fb 100644
--- 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,
};
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] ipvlan: Add the skb->mark as flow4's member to lookup route
2017-12-01 1:58 [PATCH net] ipvlan: Add the skb->mark as flow4's member to lookup route gfree.wind
@ 2017-12-03 14:44 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-12-03 14:44 UTC (permalink / raw)
To: gfree.wind; +Cc: maheshb, netdev
From: gfree.wind@vip.163.com
Date: Fri, 1 Dec 2017 09:58:42 +0800
> From: Gao Feng <gfree.wind@vip.163.com>
>
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-12-03 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-01 1:58 [PATCH net] ipvlan: Add the skb->mark as flow4's member to lookup route gfree.wind
2017-12-03 14:44 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).