]> Git Repo - linux.git/commit
ip_tunnels: allow VXLAN/GENEVE to inherit TOS/TTL from VLAN
authorMatthias May <[email protected]>
Thu, 21 Jul 2022 20:27:19 +0000 (22:27 +0200)
committerJakub Kicinski <[email protected]>
Sat, 23 Jul 2022 04:47:28 +0000 (21:47 -0700)
commit7074732c8faee201a245a6f983008a5789c0be33
treec59c6b0708dccf2c83ca3fa8e703e69bbbd30a9b
parent7446b157fe9cf03023fe183b3961c243f480e560
ip_tunnels: allow VXLAN/GENEVE to inherit TOS/TTL from VLAN

The current code allows for VXLAN and GENEVE to inherit the TOS
respective the TTL when skb-protocol is ETH_P_IP or ETH_P_IPV6.
However when the payload is VLAN encapsulated, then this inheriting
does not work, because the visible skb-protocol is of type
ETH_P_8021Q or ETH_P_8021AD.

Instead of skb->protocol use skb_protocol().

Signed-off-by: Matthias May <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
include/net/ip_tunnels.h
This page took 0.049206 seconds and 4 git commands to generate.