]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/core/dev.c
net: use software GSO for SG+CSUM capable netdevices
[linux-2.6-omap-h63xx.git] / net / core / dev.c
index da7acacf02b5d3e1b269355e13c03136f6c2c447..cbf80098980cc381f258747252dc3ccf178d89f7 100644 (file)
@@ -3988,6 +3988,10 @@ int register_netdevice(struct net_device *dev)
                }
        }
 
+       /* Enable software GSO if SG is supported. */
+       if (dev->features & NETIF_F_SG)
+               dev->features |= NETIF_F_GSO;
+
        netdev_initialize_kobject(dev);
        ret = netdev_register_kobject(dev);
        if (ret)