summaryrefslogtreecommitdiffhomepage
path: root/src/compat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-27 21:21:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-29 11:38:48 +0100
commit76875093778639d16a95588d1dd5748313cd156b (patch)
tree5f88b77a7b7a22875a47ace444ad1ebb3574d0ba /src/compat
parent2aecdd106f20816cee7e85902d7c517606b1e563 (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.h7
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>