forked from kghost/i40e-dkms
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernels greater then linux-image-4.19.0-18 will also compile there are backported function from 5.4.0
- Loading branch information
1 parent
345ccc8
commit 1e5f167
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |