Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1733de2 authored by Michael Dalton's avatar Michael Dalton Committed by David S. Miller
Browse files

flow_dissector: support L2 GRE



Add support for L2 GRE tunnels, so that RPS can be more effective.

Signed-off-by: default avatarMichael Dalton <mwdalton@google.com>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f4f3efda
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -119,6 +119,17 @@ bool skb_flow_dissect(const struct sk_buff *skb, struct flow_keys *flow)
				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;