* [PATCH net-next] flow_dissector: support L2 GRE
@ 2013-03-11 16:52 Eric Dumazet
2013-03-12 9:15 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2013-03-11 16:52 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Michael Dalton
From: Michael Dalton <mwdalton@google.com>
Add support for L2 GRE tunnels, so that RPS can be more effective.
Signed-off-by: Michael Dalton <mwdalton@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
---
net/core/flow_dissector.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c
index 9d4c720..f8d9e03 100644
--- a/net/core/flow_dissector.c
+++ b/net/core/flow_dissector.c
@@ -119,6 +119,17 @@ ipv6:
nhoff += 4;
if (hdr->flags & GRE_SEQ)
nhoff += 4;
+ if (proto == htons(ETH_P_TEB)) {
+ const struct ethhdr *eth;
+ struct ethhdr _eth;
+
+ eth = skb_header_pointer(skb, nhoff,
+ sizeof(_eth), &_eth);
+ if (!eth)
+ return false;
+ proto = eth->h_proto;
+ nhoff += sizeof(*eth);
+ }
goto again;
}
break;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] flow_dissector: support L2 GRE
2013-03-11 16:52 [PATCH net-next] flow_dissector: support L2 GRE Eric Dumazet
@ 2013-03-12 9:15 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-03-12 9:15 UTC (permalink / raw)
To: eric.dumazet; +Cc: netdev, mwdalton
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Mon, 11 Mar 2013 17:52:28 +0100
> From: Michael Dalton <mwdalton@google.com>
>
> Add support for L2 GRE tunnels, so that RPS can be more effective.
>
> Signed-off-by: Michael Dalton <mwdalton@google.com>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-12 9:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 16:52 [PATCH net-next] flow_dissector: support L2 GRE Eric Dumazet
2013-03-12 9:15 ` 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).