Skip to content

Commit 25376a8

Browse files
idoschdavem330
authored andcommitted
ipv4: ip_gre: Unmask upper DSCP bits in ipgre_open()
Unmask the upper DSCP bits when calling ip_route_output_gre() 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> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 1f23a19 commit 25376a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/ipv4/ip_gre.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
#include <net/gre.h>
4545
#include <net/dst_metadata.h>
4646
#include <net/erspan.h>
47+
#include <net/inet_dscp.h>
4748

4849
/*
4950
Problems & solutions
@@ -930,7 +931,7 @@ static int ipgre_open(struct net_device *dev)
930931
t->parms.iph.daddr,
931932
t->parms.iph.saddr,
932933
t->parms.o_key,
933-
RT_TOS(t->parms.iph.tos),
934+
t->parms.iph.tos & INET_DSCP_MASK,
934935
t->parms.link);
935936
if (IS_ERR(rt))
936937
return -EADDRNOTAVAIL;

0 commit comments

Comments
 (0)