summaryrefslogtreecommitdiff
path: root/datapath/linux
diff options
context:
space:
mode:
authorGreg Rose <gvrose@VMware-box.domain>2020-03-24 08:42:02 -0700
committerWilliam Tu <u9012063@gmail.com>2020-03-24 12:07:42 -0700
commit7fb890db313cd3e4218a529c8e1226d4ea088ed5 (patch)
tree394323a0ca2fec63283f3bb8ceeef3c3381c8500 /datapath/linux
parentaf8169b42d796365ed798a7bcd3af483521a2bee (diff)
downloadopenvswitch-7fb890db313cd3e4218a529c8e1226d4ea088ed5.tar.gz
compat: Fix nf_ip_hook parameters for RHEL 8
A RHEL release version check was only checking for RHEL releases greater than 7.0 so that ended up including a compat fixup that is not needed for 8.0. Fix up the version check. Signed-off-by: Greg Rose <gvrose8192@gmail.com> Acked-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: William Tu <u9012063@gmail.com>
Diffstat (limited to 'datapath/linux')
-rw-r--r--datapath/linux/compat/stt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/datapath/linux/compat/stt.c b/datapath/linux/compat/stt.c
index 7b46d1a20..8a5853f19 100644
--- a/datapath/linux/compat/stt.c
+++ b/datapath/linux/compat/stt.c
@@ -1559,7 +1559,7 @@ static void clean_percpu(struct work_struct *work)
#endif
#ifdef HAVE_NF_HOOK_STATE
-#if RHEL_RELEASE_CODE > RHEL_RELEASE_VERSION(7,0)
+#if RHEL_RELEASE_CODE > RHEL_RELEASE_VERSION(7,0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(8,0)
/* RHEL nfhook hacks. */
#ifndef __GENKSYMS__
#define LAST_PARAM const struct net_device *in, const struct net_device *out, \