ipv4: Unmask upper DSCP bits when building flow key
authorIdo Schimmel <idosch@nvidia.com>
Thu, 29 Aug 2024 06:54:53 +0000 (09:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2024 16:44:51 +0000 (17:44 +0100)
commitf6c89e95555ace0cb10d01b07756bfa5db5ee7fa
tree5ed2e6c1f91e5c1ed1081a6f5b8ab63bb40b69d1
parent356d054a4967e6190ee558b8e839fad3e9db35ec
ipv4: Unmask upper DSCP bits when building flow key

build_sk_flow_key() and __build_flow_key() are used to build an IPv4
flow key before calling one of the FIB lookup APIs.

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