diff options
| -rw-r--r-- | net/core/dev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 5bdce97b8175..09b3742c4c89 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -5057,6 +5057,11 @@ int register_netdevice(struct net_device *dev) | |||
| 5057 | if (dev->features & NETIF_F_SG) | 5057 | if (dev->features & NETIF_F_SG) |
| 5058 | dev->features |= NETIF_F_GSO; | 5058 | dev->features |= NETIF_F_GSO; |
| 5059 | 5059 | ||
| 5060 | /* Enable GRO for vlans by default if dev->features has GRO also. | ||
| 5061 | * vlan_dev_init() will do the dev->features check. | ||
| 5062 | */ | ||
| 5063 | dev->vlan_features |= NETIF_F_GRO; | ||
| 5064 | |||
| 5060 | ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev); | 5065 | ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev); |
| 5061 | ret = notifier_to_errno(ret); | 5066 | ret = notifier_to_errno(ret); |
| 5062 | if (ret) | 5067 | if (ret) |
