ipv4: Unmask upper DSCP bits in RTM_GETROUTE output route lookup
authorIdo Schimmel <idosch@nvidia.com>
Thu, 29 Aug 2024 06:54:48 +0000 (09:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2024 16:44:50 +0000 (17:44 +0100)
commit47afa284b96c62bda127604e6091fd5c9fd7e42c
treee6346034cd6d470677d8be338e2ba9ec28646963
parentcff69f72d33318f4ccfe7d5ff6c5616d00dd45a7
ipv4: Unmask upper DSCP bits in RTM_GETROUTE output route lookup

Unmask the upper DSCP bits when looking up an output route via the
RTM_GETROUTE netlink message so that in the future the lookup could be
performed according to the full DSCP value.

No functional changes intended since the upper DSCP bits are masked when
comparing against the TOS selectors in FIB rules and routes.

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/ipv4/route.c