From 579961d9eeef4092841c0d4aa98f10e97fd15e7a Mon Sep 17 00:00:00 2001 From: Alfredo Cardigliano Date: Fri, 24 May 2024 17:54:33 +0200 Subject: [PATCH] Fix iavf on ubuntu18 --- drivers/intel/iavf/iavf-4.9.5-zc/src/kcompat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/intel/iavf/iavf-4.9.5-zc/src/kcompat.h b/drivers/intel/iavf/iavf-4.9.5-zc/src/kcompat.h index 61bff5a42..0ba7cf13d 100644 --- a/drivers/intel/iavf/iavf-4.9.5-zc/src/kcompat.h +++ b/drivers/intel/iavf/iavf-4.9.5-zc/src/kcompat.h @@ -39,7 +39,6 @@ #include #ifdef HAVE_PF_RING -#include //#define HAVE_PF_RING_NO_RDMA #define HAVE_PF_RING_ONLY /* No kernel mode even when ZC is not in use */ #define IAVF_MAX_NIC 64 @@ -6981,6 +6980,9 @@ _kc_napi_busy_loop(unsigned int napi_id, /*****************************************************************************/ /* HAVE_PF_RING */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,16,0)) +#include +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0)) #define strlcpy(...) (void)(strscpy(__VA_ARGS__)) #endif