diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-28 14:31:04 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-28 14:31:04 +0200 |
commit | f0c241da73ec87720c688825ffb42afe4442e777 (patch) | |
tree | 0880132907f2b096381425811bfb091a8d34521f /src | |
parent | 67342d25fb4c7432c91f8e9299c778011970c1e2 (diff) |
compat: support RHEL8's skb_mark_not_on_list backport
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/compat/compat.h | 4 |
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; |