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>
This commit is contained in:
parent
f4f3efdaf9
commit
e1733de224
|
@ -119,6 +119,17 @@ ipv6:
|
||||||
nhoff += 4;
|
nhoff += 4;
|
||||||
if (hdr->flags & GRE_SEQ)
|
if (hdr->flags & GRE_SEQ)
|
||||||
nhoff += 4;
|
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;
|
goto again;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue