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