diff options
| author | 2019-03-27 21:21:46 +0100 | |
|---|---|---|
| committer | 2019-03-29 11:38:48 +0100 | |
| commit | 65e1f2838401bf033f3c8a8cdd718589574d9d2d (patch) | |
| tree | 69eb727412fe52d8a51fe09f54667178683ff222 | |
| parent | blake2s: remove outlen parameter from final (diff) | |
| download | WireGuard-65e1f2838401bf033f3c8a8cdd718589574d9d2d.tar.xz WireGuard-65e1f2838401bf033f3c8a8cdd718589574d9d2d.zip | |
compat: backport skb_mark_not_on_list
| -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> |
