Skip to content

Commit

Permalink
Fix iavf on ubuntu18
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed May 24, 2024
1 parent babe0ca commit 579961d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/intel/iavf/iavf-4.9.5-zc/src/kcompat.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include <linux/vmalloc.h>

#ifdef HAVE_PF_RING
#include <net/xdp.h>
//#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
Expand Down Expand Up @@ -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 <net/xdp.h>
#endif
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0))
#define strlcpy(...) (void)(strscpy(__VA_ARGS__))
#endif
Expand Down

0 comments on commit 579961d

Please sign in to comment.