diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-27 21:21:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-29 11:38:48 +0100 |
commit | 76875093778639d16a95588d1dd5748313cd156b (patch) | |
tree | 5f88b77a7b7a22875a47ace444ad1ebb3574d0ba /src/compat | |
parent | 2aecdd106f20816cee7e85902d7c517606b1e563 (diff) |
compat: backport skb_mark_not_on_list
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/compat')
-rw-r--r-- | src/compat/compat.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <linux/bug.h> |