From 6008eacbf2c7a5f31b0c9d5d0a629cbdfbb8f222 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Thu, 5 Jul 2018 22:27:29 +0200 Subject: receive: use NAPI on the receive path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Suggested-by: Jason A. Donenfeld [Jason: fixed up the flushing of the rx_queue in peer_remove] Signed-off-by: Jonathan Neuschäfer --- src/compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compat/compat.h') diff --git a/src/compat/compat.h b/src/compat/compat.h index 2c1b663..997ae39 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -597,6 +597,10 @@ static inline void *skb_put_data(struct sk_buff *skb, const void *data, unsigned } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) && !defined(ISRHEL7) +#define napi_complete_done(n, work_done) napi_complete(n) +#endif + /* https://lkml.kernel.org/r/20170624021727.17835-1-Jason@zx2c4.com */ #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include -- cgit v1.2.3-59-g8ed1b