From: Ido Schimmel Date: Thu, 29 Aug 2024 06:54:49 +0000 (+0300) Subject: ipv4: Unmask upper DSCP bits in ip_route_output_key_hash() X-Git-Tag: v6.12-rc1~232^2~133^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a63cef46adcbedd4f4ea7401773a310edca53131;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Guillaume Nault Signed-off-by: David S. Miller --- diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e4b45aa184701..5a77dc6d9c720 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);