diff options
-rw-r--r-- | net/core/dev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index da7acacf02b5..cbf80098980c 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -3988,6 +3988,10 @@ int register_netdevice(struct net_device *dev) | |||
3988 | } | 3988 | } |
3989 | } | 3989 | } |
3990 | 3990 | ||
3991 | /* Enable software GSO if SG is supported. */ | ||
3992 | if (dev->features & NETIF_F_SG) | ||
3993 | dev->features |= NETIF_F_GSO; | ||
3994 | |||
3991 | netdev_initialize_kobject(dev); | 3995 | netdev_initialize_kobject(dev); |
3992 | ret = netdev_register_kobject(dev); | 3996 | ret = netdev_register_kobject(dev); |
3993 | if (ret) | 3997 | if (ret) |