ipv4: Unmask upper DSCP bits in __ip_queue_xmit()
authorIdo Schimmel <idosch@nvidia.com>
Tue, 3 Sep 2024 13:53:24 +0000 (16:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Sep 2024 23:57:11 +0000 (16:57 -0700)
commit71f1fea4f65deeb0e1a4442fe661cfc5a541a036
tree497d0677c9f10c73b949fca6ff0c838a37208b7b
parent6ffa72acc9c933a065782cb49afde1130ca722f7
ipv4: Unmask upper DSCP bits in __ip_queue_xmit()

The function is passed the full DS field in its 'tos' argument by its
two callers. It then masks the upper DSCP bits using RT_TOS() when
passing it to ip_route_output_ports().

Unmask the upper DSCP bits when passing 'tos' to ip_route_output_ports()
so that in the future it could perform the FIB lookup according to the
full DSCP value.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240903135327.2810535-2-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_output.c