Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
ipv4: Unmask upper DSCP bits in ip_route_output_key_hash()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Guillaume Nault <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
idosch authored and davem330 committed Aug 31, 2024
1 parent 47afa28 commit a63cef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a63cef4

Please sign in to comment.