Skip to content

Commit

Permalink
Fix compilation on ubuntu 20
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Dec 12, 2023
1 parent 19acd26 commit 1100de9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/intel/iavf/iavf-4.5.3-zc/src/kcompat_std_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@
#define NEED_XSK_BUFF_DMA_SYNC_FOR_CPU
#define NEED_XSK_BUFF_POOL_RENAME
#define NEED_ETH_HW_ADDR_SET
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0) && LINUX_VERSION_CODE < KERNEL_VERSION(5,5,0)) // Ubuntu 20 does not require this
#undef NEED_ETH_HW_ADDR_SET
#endif
#else /* >= 5.10.0 */
#define HAVE_DEVLINK_RELOAD_ACTION_AND_LIMIT
#define HAVE_DEVLINK_REGION_OPS_SNAPSHOT_OPS
Expand Down

0 comments on commit 1100de9

Please sign in to comment.