From: Johannes Berg Date: Wed, 9 Apr 2014 12:03:27 +0000 (+0300) Subject: backports: add napi_gro_flush() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=16744e51fa49e77bcfe76b5100cc555a4fd7e272;p=openwrt%2Fstaging%2Fblogic.git backports: add napi_gro_flush() 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 Signed-off-by: Emmanuel Grumbach Signed-off-by: Luis R. Rodriguez --- diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index f77e3ebd2278..a39bff70676b 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -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 */