flow_dissector: support L2 GRE
Subsystems (2)
PATCH 1/1 flow_dissector: support L2 GRE
From: Michael Dalton <[email protected]>
Add support for L2 GRE tunnels, so that RPS can be more effective.
Signed-off-by Michael Dalton <[email protected]>
Signed-off-by Eric Dumazet <[email protected]>
--- net/core/flow_dissector.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
net/core/flow_dissector.c +11 -0
@@ -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 ;
From: Eric Dumazet <[email protected]>
Date: Mon, 11 Mar 2013 17:52:28 +0100
Quoted 6 lines
From: Michael Dalton <[email protected]>
Add support for L2 GRE tunnels, so that RPS can be more effective.
Signed-off-by Michael Dalton <[email protected]>Signed-off-by Eric Dumazet <[email protected]>
Applied.