From 0c83b08b0248c7781aae8f41cef90ee3dc06c410 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 20 May 2020 22:11:40 -0600 Subject: compat: RHEL7 backported the skb hash renamings Signed-off-by: Jason A. Donenfeld --- src/compat/compat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compat/compat.h b/src/compat/compat.h index 22289ea..7d73083 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -1026,16 +1026,16 @@ static inline void skb_reset_redirect(struct sk_buff *skb) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) && !defined(ISRHEL7) #define skb_get_hash skb_get_rxhash #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) && !defined(ISRHEL7) #define hash rxhash #define l4_hash l4_rxhash #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(ISRHEL7) #define sw_hash ignore_df = 0; skb->nf_trace = skb->ooo_okay #endif -- cgit v1.2.3