diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-03-07 09:28:08 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-09 16:08:57 -0500 |
commit | ee579677c29954f20e48e5bb80ae85b30100c2e0 (patch) | |
tree | 3b8cd6a43a7f204de2ec9912c90905df91fe15b1 /net/core/dev.c | |
parent | ec5f061564238892005257c83565a0b58ec79295 (diff) | |
download | lwn-ee579677c29954f20e48e5bb80ae85b30100c2e0.tar.gz lwn-ee579677c29954f20e48e5bb80ae85b30100c2e0.zip |
tunnel: Inherit NETIF_F_SG for hw_enc_features.
Inherit scatergather feature for tunnel devices to avoid
copy for TSO packets of tunneling device like GRE.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-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 bb999931729f..90cee5be1c0f 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -5205,6 +5205,10 @@ int register_netdevice(struct net_device *dev) */ dev->vlan_features |= NETIF_F_HIGHDMA; + /* Make NETIF_F_SG inheritable to tunnel devices. + */ + dev->hw_enc_features |= NETIF_F_SG; + ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev); ret = notifier_to_errno(ret); if (ret) |