[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1363020748.13690.3.camel@edumazet-glaptop>
Date: Mon, 11 Mar 2013 17:52:28 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
Michael Dalton <mwdalton@...gle.com>
Subject: [PATCH net-next] flow_dissector: support L2 GRE
From: Michael Dalton <mwdalton@...gle.com>
Add support for L2 GRE tunnels, so that RPS can be more effective.
Signed-off-by: Michael Dalton <mwdalton@...gle.com>
Signed-off-by: Eric Dumazet <edumazet@...gle.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;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists