Skip to content

Commit b45bd1d

Browse files
tomratbertdavem330
authored andcommitted
ip6_gre: Use correct flags for reading TUNNEL_SEQ
Fix two spots where o_flags in a tunnel are being compared to GRE_SEQ instead of TUNNEL_SEQ. Signed-off-by: Tom Herbert <tom@herbertland.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4b4a0c9 commit b45bd1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/ipv6/ip6_gre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ static struct ip6_tnl *ip6gre_tunnel_locate(struct net *net,
343343
goto failed_free;
344344

345345
/* Can use a lockless transmit, unless we generate output sequences */
346-
if (!(nt->parms.o_flags & GRE_SEQ))
346+
if (!(nt->parms.o_flags & TUNNEL_SEQ))
347347
dev->features |= NETIF_F_LLTX;
348348

349349
dev_hold(dev);
@@ -1314,7 +1314,7 @@ static int ip6gre_newlink(struct net *src_net, struct net_device *dev,
13141314
dev->features |= GRE6_FEATURES;
13151315
dev->hw_features |= GRE6_FEATURES;
13161316

1317-
if (!(nt->parms.o_flags & GRE_SEQ)) {
1317+
if (!(nt->parms.o_flags & TUNNEL_SEQ)) {
13181318
/* TCP segmentation offload is not supported when we
13191319
* generate output sequences.
13201320
*/

0 commit comments

Comments
 (0)