Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256129
b: refs/heads/master
c: f9d7a11
h: refs/heads/master
i:
  256127: 1707a06
v: v3
  • Loading branch information
Shan Wei authored and David S. Miller committed Jul 6, 2011
1 parent 620f035 commit 70e40fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 7736d33f4262d437c51ed7a28114eacbfca236ff
refs/heads/master: f9d7a1187dfefc6b54b53e0ffff4d26c0eff2702
9 changes: 5 additions & 4 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5488,11 +5488,12 @@ int register_netdevice(struct net_device *dev)
dev->features |= NETIF_F_NOCACHE_COPY;
}

/* Enable GRO and NETIF_F_HIGHDMA for vlans by default,
* vlan_dev_init() will do the dev->features check, so these features
* are enabled only if supported by underlying device.
/* Enable GSO, GRO and NETIF_F_HIGHDMA for vlans by default,
* vlan_dev_fix_features() will do the features check,
* so NETIF_F_HIGHDMA feature is enabled only if supported
* by underlying device.
*/
dev->vlan_features |= (NETIF_F_GRO | NETIF_F_HIGHDMA);
dev->vlan_features |= (NETIF_F_SOFT_FEATURES | NETIF_F_HIGHDMA);

ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev);
ret = notifier_to_errno(ret);
Expand Down

0 comments on commit 70e40fc

Please sign in to comment.