Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee579677 authored by Pravin B Shelar's avatar Pravin B Shelar Committed by David S. Miller
Browse files

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: default avatarPravin B Shelar <pshelar@nicira.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ec5f0615
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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)