Skip to content

Commit

Permalink
i40e driver patch for debian 10
Browse files Browse the repository at this point in the history
kernels greater then linux-image-4.19.0-18 will also compile there are
backported function from 5.4.0
  • Loading branch information
basvandervlies committed Nov 10, 2021
1 parent 345ccc8 commit 1e5f167
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions debian_10.patch
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions debian_10.readme
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1e5f167

Please sign in to comment.