]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: Unmask upper DSCP bits in get_rttos()
authorIdo Schimmel <idosch@nvidia.com>
Thu, 29 Aug 2024 06:54:52 +0000 (09:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2024 16:44:51 +0000 (17:44 +0100)
commit356d054a4967e6190ee558b8e839fad3e9db35ec
treeda8b03096c4d9eef45a025db63d69679a10e2731
parentff95cb5e521b60d046e6571ada697a0977b189c3
ipv4: Unmask upper DSCP bits in get_rttos()

The function is used by a few socket types to retrieve the TOS value
with which to perform the FIB lookup for packets sent through the socket
(flowi4_tos). If a DS field was passed using the IP_TOS control message,
then it is used. Otherwise the one specified via the IP_TOS socket
option.

Unmask the upper DSCP bits so that in the future the 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>
include/net/ip.h