Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Pravin B Shelar and committed by
David S. Miller
ee579677 ec5f0615

+4
+4
net/core/dev.c
··· 5205 5205 */ 5206 5206 dev->vlan_features |= NETIF_F_HIGHDMA; 5207 5207 5208 + /* Make NETIF_F_SG inheritable to tunnel devices. 5209 + */ 5210 + dev->hw_enc_features |= NETIF_F_SG; 5211 + 5208 5212 ret = call_netdevice_notifiers(NETDEV_POST_INIT, dev); 5209 5213 ret = notifier_to_errno(ret); 5210 5214 if (ret)