OSDN Git Service

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)
commit41337f52b967b09a7a2cb34ecfce6dd71e5ab4f6
tree40a1ae5edddfb92292399f8cb3d0a635dc36ac16
parent7ae29fd1be431763041f52b8bca017b76cb7b06d
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