]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_gre: set DSCP for non-IP
authorMatthias May <matthias.may@westermo.com>
Mon, 11 Jul 2022 09:17:20 +0000 (11:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 11:10:22 +0000 (12:10 +0100)
commit2b3daf1e0c609a236f9ea451eb8d2d3be4e47759
tree40a1ae5edddfb92292399f8cb3d0a635dc36ac16
parentfe3bca22e1c0f23399728f617ffe4d74a1a9fb82
ip6_gre: set DSCP for non-IP

The current code always forces a dscp of 0 for all non-IP frames.
However when setting a specific TOS with the command

ip link add name tep0 type ip6gretap local fdd1:ced0:5d88:3fce::1
remote fdd1:ced0:5d88:3fce::2 tos 0xa0

one would expect all GRE encapsulated frames to have a TOS of 0xA0.
and not only when the payload is IPv4/IPv6.

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