]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ipv6: sit: Unmask upper DSCP bits in ipip6_tunnel_bind_dev()
authorIdo Schimmel <idosch@nvidia.com>
Tue, 3 Sep 2024 13:53:27 +0000 (16:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Wed, 4 Sep 2024 23:57:11 +0000 (16:57 -0700)
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>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240903135327.2810535-5-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/sit.c

index 16b90a24c9baf8c0d0115b9fb23f2ad39e3e2262..39bd8951bfca18e570154dc298f7f8ebdf6208d7 100644 (file)
@@ -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)) {