Skip to contentSkip to conversation

backports: add napi_gro_flush()

PATCH New Emmanuel Grumbach 1 participant 1 message Apr 9, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backports: add napi_gro_flush()

From: Johannes Berg <[email protected]>

napi_gro_flush() got a second argument in kernel 3.7, but it can be ignored for prior kernel versions.

---
 backport/backport-include/linux/netdevice.h | 1 +
 1 file changed, 1 insertion(+)
backport/backport-include/linux/netdevice.h +1 -0
index f99ea02..26640eb 100644
@@ -481,6 +481,7 @@ struct net *dev_net(const struct net_device *dev)
 #define netdev_notify_peers(dev)
 #elif LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
 #define netdev_notify_peers(dev) netif_notify_peers(dev)
+#define napi_gro_flush(napi, old) napi_gro_flush(napi)
 #endif
 
 #endif /* __BACKPORT_NETDEVICE_H */
Signature · 1 line
1.8.3.2