diff options
author | Ido Schimmel <idosch@nvidia.com> | 2024-08-29 09:54:49 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-31 19:44:50 +0300 |
commit | a63cef46adcbedd4f4ea7401773a310edca53131 (patch) | |
tree | bbf8208567e6b259c160a4e4522eda1b23c0b700 /net/ipv4 | |
parent | 47afa284b96c62bda127604e6091fd5c9fd7e42c (diff) | |
download | linux-a63cef46adcbedd4f4ea7401773a310edca53131.tar.xz |
ipv4: Unmask upper DSCP bits in ip_route_output_key_hash()
Unmask the upper DSCP bits so that in the future output routes could be
looked up 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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e4b45aa18470..5a77dc6d9c72 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2618,7 +2618,7 @@ struct rtable *ip_route_output_key_hash(struct net *net, struct flowi4 *fl4, struct rtable *rth; fl4->flowi4_iif = LOOPBACK_IFINDEX; - fl4->flowi4_tos &= IPTOS_RT_MASK; + fl4->flowi4_tos &= INET_DSCP_MASK; rcu_read_lock(); rth = ip_route_output_key_hash_rcu(net, fl4, &res, skb); |