mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
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>
This commit is contained in:
parent
ec5f061564
commit
ee579677c2
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue