diff options
author | Michael Dalton <mwdalton@google.com> | 2013-03-11 06:52:28 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-12 09:14:06 (GMT) |
commit | e1733de2243609073534cf56afb146a62af3c3d8 (patch) | |
tree | ed216256b1375155a153597d13364564a5ba6fb0 /net/core | |
parent | f4f3efdaf9f0770b69fb2c86f1a67547ad756942 (diff) | |
download | linux-fsl-qoriq-e1733de2243609073534cf56afb146a62af3c3d8.tar.xz |
flow_dissector: support L2 GRE
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/flow_dissector.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; |