ipv6: sit: Unmask upper DSCP bits in ipip6_tunnel_xmit()
authorIdo Schimmel <idosch@nvidia.com>
Thu, 29 Aug 2024 06:54:56 +0000 (09:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2024 16:44:51 +0000 (17:44 +0100)
commit6a59526628ad6dadf389f45ddb3f75db44930897
treefb03d55a487e2c9fa34815f5cd9c9a25e9a9a3de
parent13f6538de2b845650e68996621489de547b0337e
ipv6: sit: Unmask upper DSCP bits in ipip6_tunnel_xmit()

The function calls flowi4_init_output() to initialize an IPv4 flow key
with which it then performs a FIB lookup using ip_route_output_flow().

The 'tos' variable with which the TOS value in the IPv4 flow key
(flowi4_tos) is initialized contains the full DS field. Unmask the upper
DSCP bits so that in the future the FIB lookup could be performed
according to the full DSCP value.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/sit.c