aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-06-28 14:31:04 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-28 14:31:04 +0200
commit80f006d3656ce2858675020a23879e916ea8a4fc (patch)
treed829913cd39dc23c30a01bbaaa3b51d42efd7c64
parentcompat: rhel backported list modifications (diff)
downloadwireguard-monolithic-historical-80f006d3656ce2858675020a23879e916ea8a4fc.tar.xz
wireguard-monolithic-historical-80f006d3656ce2858675020a23879e916ea8a4fc.zip
compat: support RHEL8's skb_mark_not_on_list backport
-rw-r--r--src/compat/compat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 7fee52d..239fa58 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -14,6 +14,8 @@
#ifdef RHEL_MAJOR
#if RHEL_MAJOR == 7
#define ISRHEL7
+#elif RHEL_MAJOR == 8
+#define ISRHEL8
#endif
#endif
#ifdef UTS_UBUNTU_RELEASE_ABI
@@ -823,7 +825,7 @@ static __always_inline void old_rcu_barrier(void)
#define COMPAT_CANNOT_DEPRECIATE_BH_RCU
#endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 10)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 19, 10) && !defined(ISRHEL8)
static inline void skb_mark_not_on_list(struct sk_buff *skb)
{
skb->next = NULL;