summaryrefslogtreecommitdiff
path: root/backport/backport-include
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2015-11-14 17:16:02 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2015-11-15 16:40:20 +0100
commit566963f05f5fbe0754b7e14f049fb6072645a0e3 (patch)
tree43375529e506d2203020f78702cac662924d0939 /backport/backport-include
parent86546fe32c07cd7769126d07301342496658b52d (diff)
haeder: add napi_complete_done()
Upstream commit 3b47d30396 "net: gro: add a per device gro flush timer" added napi_complete_done(). On older kernel versions we will just use the old napi_complete() function, this should work without any problems, we only do not get the new improvements which need a more recent net subsystem. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/backport-include')
-rw-r--r--backport/backport-include/linux/netdevice.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index 95189be6..86d5ea75 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -292,4 +292,12 @@ netdev_features_t passthru_features_check(struct sk_buff *skb,
})
#endif /* netdev_alloc_pcpu_stats */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
+#define napi_complete_done LINUX_BACKPORT(napi_complete_done)
+static inline void napi_complete_done(struct napi_struct *n, int work_done)
+{
+ napi_complete(n);
+}
+#endif /* < 3.19 */
+
#endif /* __BACKPORT_NETDEVICE_H */