projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec5f061
)
tunnel: Inherit NETIF_F_SG for hw_enc_features.
author
Pravin B Shelar
<pshelar@nicira.com>
Thu, 7 Mar 2013 09:28:08 +0000
(09:28 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 9 Mar 2013 21:08:57 +0000
(16:08 -0500)
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>
net/core/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index bb999931729faf859bc5a9824048efdd92f1325f..90cee5be1c0fe14914d07ce6eee218ccc10a58b0 100644
(file)
--- 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)