Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352786
b: refs/heads/master
c: eb6b9a8
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Kravkov authored and David S. Miller committed Feb 19, 2013
1 parent 3696b5d commit 68ef751
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa0e51cdda005cd37e23751de54443b1e73e7def
refs/heads/master: eb6b9a8cad65e820b145547844b108117cece3a0
10 changes: 8 additions & 2 deletions trunk/net/ipv4/ip_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,8 +1103,14 @@ static int ipgre_tunnel_bind_dev(struct net_device *dev)
tunnel->hlen = addend;
/* TCP offload with GRE SEQ is not supported. */
if (!(tunnel->parms.o_flags & GRE_SEQ)) {
dev->features |= NETIF_F_GSO_SOFTWARE;
dev->hw_features |= NETIF_F_GSO_SOFTWARE;
/* device supports enc gso offload*/
if (tdev->hw_enc_features & NETIF_F_GRE_GSO) {
dev->features |= NETIF_F_TSO;
dev->hw_features |= NETIF_F_TSO;
} else {
dev->features |= NETIF_F_GSO_SOFTWARE;
dev->hw_features |= NETIF_F_GSO_SOFTWARE;
}
}

return mtu;
Expand Down

0 comments on commit 68ef751

Please sign in to comment.