Skip to content

Commit df9131c

Browse files
idoschkuba-moo
authored andcommitted
ipv4: Unmask upper DSCP bits in input route lookup
Unmask the upper DSCP bits in input route lookup so that in the future the lookup could be performed according to the full DSCP value. No functional changes intended since the upper DSCP bits are masked when comparing against the TOS selectors in FIB rules and routes. Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Guillaume Nault <[email protected]> Acked-by: Florian Westphal <[email protected]> Reviewed-by: David Ahern <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 39d3628 commit df9131c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,7 @@ int ip_route_input_noref(struct sk_buff *skb, __be32 daddr, __be32 saddr,
24702470
struct fib_result res;
24712471
int err;
24722472

2473-
tos &= IPTOS_RT_MASK;
2473+
tos &= INET_DSCP_MASK;
24742474
rcu_read_lock();
24752475
err = ip_route_input_rcu(skb, daddr, saddr, tos, dev, &res);
24762476
rcu_read_unlock();

0 commit comments

Comments
 (0)