From 65e1f2838401bf033f3c8a8cdd718589574d9d2d Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 27 Mar 2019 21:21:46 +0100 Subject: compat: backport skb_mark_not_on_list --- src/compat/compat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/compat/compat.h b/src/compat/compat.h index 396a293..6ee3ac8 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -811,6 +811,13 @@ static __always_inline void old_rcu_barrier(void) #define COMPAT_CANNOT_DEPRECIATE_BH_RCU #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 10) +static inline void skb_mark_not_on_list(struct sk_buff *skb) +{ + skb->next = NULL; +} +#endif + /* https://github.com/ClangBuiltLinux/linux/issues/7 */ #if defined( __clang__) && (!defined(CONFIG_CLANG_VERSION) || CONFIG_CLANG_VERSION < 80000) #include -- cgit v1.2.3-59-g8ed1b