netfilter: nft_fib: Unmask upper DSCP bits
authorIdo Schimmel <idosch@nvidia.com>
Wed, 21 Aug 2024 12:52:44 +0000 (15:52 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Aug 2024 23:59:57 +0000 (16:59 -0700)
commit338385e059c5d299556fa341d10601ae72c6e932
tree6973143bdaf07b4afcb6260f2e27da482a5fed2a
parentc1ae5ca69b691a7403e85047382fc4fd6a69ee9f
netfilter: nft_fib: Unmask upper DSCP bits

In a similar fashion to the iptables rpfilter match, unmask the upper
DSCP bits of the DS field of the currently tested packet so that in the
future the FIB 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>
Acked-by: Florian Westphal <fw@strlen.de>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240821125251.1571445-6-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/netfilter/nft_fib_ipv4.c