backports: add napi_gro_flush()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Apr 2014 12:03:27 +0000 (15:03 +0300)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 17 Apr 2014 23:23:08 +0000 (16:23 -0700)
napi_gro_flush() got a second argument in kernel 3.7, but it
can be ignored for prior kernel versions.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
backport/backport-include/linux/netdevice.h

index f77e3ebd22781ab3561b1c69a97dad68e9023076..a39bff70676b8516ef760079b98d1bf1cfefebfb 100644 (file)
@@ -521,6 +521,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 */