aboutsummaryrefslogtreecommitdiff
path: root/net/8021q
diff options
context:
space:
mode:
authorMatthias May <matthias.may@westermo.com>2022-07-11 11:17:19 +0200
committerDavid S. Miller <davem@davemloft.net>2022-07-13 12:10:21 +0100
commit7ae29fd1be431763041f52b8bca017b76cb7b06d (patch)
tree1706d749856e10b49a9924be85773a766cb86aa4 /net/8021q
parentb6afeb87ad294689a9687cda28dd7a7006740fc0 (diff)
ip_tunnel: allow to inherit from VLAN encapsulated IP
The current code allows to inherit the TOS, TTL, DF from the payload when skb->protocol is ETH_P_IP or ETH_P_IPV6. However when the payload is VLAN encapsulated (e.g because the tunnel is of type GRETAP), 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 <matthias.may@westermo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q')
0 files changed, 0 insertions, 0 deletions