Message ID | 20240903135327.2810535-5-idosch@nvidia.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c9a1e2629d10669e86b772add4fdea84252442da |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Unmask upper DSCP bits - part 3 | expand |
On Tue, Sep 03, 2024 at 04:53:27PM +0300, Ido Schimmel wrote: > Unmask the upper DSCP bits when calling ip_route_output_ports() so that > in the future it could perform the FIB lookup according to the full DSCP > value. Reviewed-by: Guillaume Nault <gnault@redhat.com>
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index 16b90a24c9ba..39bd8951bfca 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c @@ -1112,7 +1112,7 @@ static void ipip6_tunnel_bind_dev(struct net_device *dev) iph->daddr, iph->saddr, 0, 0, IPPROTO_IPV6, - RT_TOS(iph->tos), + iph->tos & INET_DSCP_MASK, tunnel->parms.link); if (!IS_ERR(rt)) {
Unmask the upper DSCP bits when calling ip_route_output_ports() so that in the future it could perform the FIB lookup according to the full DSCP value. Signed-off-by: Ido Schimmel <idosch@nvidia.com> --- net/ipv6/sit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)