From: Olivier Matz Date: Thu, 26 Nov 2020 14:23:45 +0000 (+0100) Subject: kni: fix build on RHEL 8.3 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=95e0871929bfd9891545c9cbfe97119cb72390ba;p=dpdk.git kni: fix build on RHEL 8.3 Like what was done for mainline kernel in commit 38ad54f3bc76 ("kni: fix build with Linux 5.6"), a new parameter 'txqueue' has to be added to 'ndo_tx_timeout' ndo on RHEL 8.3 kernel. Cc: stable@dpdk.org Signed-off-by: Olivier Matz Tested-by: Christophe Grosse Tested-by: David Marchand Acked-by: Ferruh Yigit --- diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h index d515b27669..5f65640d5e 100644 --- a/kernel/linux/kni/compat.h +++ b/kernel/linux/kni/compat.h @@ -131,7 +131,9 @@ #define HAVE_IOVA_TO_KVA_MAPPING_SUPPORT #endif -#if KERNEL_VERSION(5, 6, 0) <= LINUX_VERSION_CODE +#if KERNEL_VERSION(5, 6, 0) <= LINUX_VERSION_CODE || \ + (defined(RHEL_RELEASE_CODE) && \ + RHEL_RELEASE_VERSION(8, 3) <= RHEL_RELEASE_CODE) #define HAVE_TX_TIMEOUT_TXQUEUE #endif