]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ipv4: Unmask upper DSCP bits in ip_route_output_key_hash()
authorIdo Schimmel <idosch@nvidia.com>
Thu, 29 Aug 2024 06:54:49 +0000 (09:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Aug 2024 16:44:50 +0000 (17:44 +0100)
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>
net/ipv4/route.c

index e4b45aa184701d9343c2fa5923c6c3c980de56b6..5a77dc6d9c720be2b47c94707612908544e9f84d 100644 (file)
@@ -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);