Linux kernel in the RHEL9.1 seems backported Linux commit [1] that drops netif_rx_ni().
This was fixed in DPDK [2] for vanilla Linux kernel. Adding RHEL9.1 check for the netif_rx_ni() usage to fix build error. [1] 2655926aea9b ("net: Remove netif_rx_any_context() and netif_rx_ni().") [2] Commit c98600d4bed6 ("kni: fix build with Linux 5.18") Bugzilla ID: 1076 Cc: sta...@dpdk.org Signed-off-by: Ferruh Yigit <ferruh.yi...@amd.com> --- Cc: daxuex....@intel.com --- kernel/linux/kni/compat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/linux/kni/compat.h b/kernel/linux/kni/compat.h index 3a86d12bbc5c..7aa6cd9fca75 100644 --- a/kernel/linux/kni/compat.h +++ b/kernel/linux/kni/compat.h @@ -146,6 +146,8 @@ #define HAVE_ETH_HW_ADDR_SET #endif -#if KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE +#if KERNEL_VERSION(5, 18, 0) > LINUX_VERSION_CODE && \ + (!(defined(RHEL_RELEASE_CODE) && \ + RHEL_RELEASE_VERSION(9, 1) <= RHEL_RELEASE_CODE)) #define HAVE_NETIF_RX_NI #endif -- 2.25.1