diff --git a/debian_10.patch b/debian_10.patch new file mode 100644 index 0000000..9a972ee --- /dev/null +++ b/debian_10.patch @@ -0,0 +1,23 @@ +--- src/kcompat_std_defs.h 2021-09-22 19:13:19.000000000 +0200 ++++ /usr/src/i40e-2.17.4/kcompat_std_defs.h 2021-11-10 13:47:11.000000000 +0100 +@@ -91,6 +91,11 @@ + #define HAVE_TCF_EXTS_FOR_EACH_ACTION + #endif /* 4,19,0 */ + ++/* HvB hack for debian 10 */ ++#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,19,195)) ++#define NEED_SKB_FRAG_OFF_ACCESSORS ++#endif ++ + /*****************************************************************************/ + #if (LINUX_VERSION_CODE < KERNEL_VERSION(5,1,0)) + #else /* >= 5.1.0 */ +@@ -118,7 +123,7 @@ + + /*****************************************************************************/ + #if (LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0)) +-#define NEED_SKB_FRAG_OFF_ACCESSORS ++/*HvB #define NEED_SKB_FRAG_OFF_ACCESSORS*/ + #define NEED_FLOW_INDR_BLOCK_CB_REGISTER + #else /* >= 5.4.0 */ + #define HAVE_XSK_UNALIGNED_CHUNK_PLACEMENT diff --git a/debian_10.readme b/debian_10.readme new file mode 100644 index 0000000..4b89c66 --- /dev/null +++ b/debian_10.readme @@ -0,0 +1,12 @@ +we have added a patch for debian 10. If you use the standard debian 10 kernel,eg: + * linux-image-4.19.0-17-amd64 + +In debian release 10.11 the default kernel is: + * linux-image-4.19.0-18-amd64 + +In this kernel there are some backports from kernel 5.4.0 and the driver does not +compile anymore. SURF included a simple patch to fix this: + * cd src + * patch < debian10_patch + +This patch compiles for old and new debian kernels