ip6_gre: use actual protocol to select xmit
authorMatthias May <matthias.may@westermo.com>
Mon, 11 Jul 2022 09:17:21 +0000 (11:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 11:10:22 +0000 (12:10 +0100)
commit3f8a8447fd0b0069236a417607b2e6cba30911ac
tree30f01dd40749b3ef69a0911972efd1bd7ef895da
parent41337f52b967b09a7a2cb34ecfce6dd71e5ab4f6
ip6_gre: use actual protocol to select xmit

When the payload is a VLAN encapsulated IPv6/IPv6 frame, we can
skip the 802.1q/802.1ad ethertypes and jump to the actual protocol.
This way we treat IPv4/IPv6 frames as IP instead of as "other".

Signed-off-by: Matthias May <matthias.may@westermo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c