Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional patch for K6.4.y+ #54

Closed
safocl opened this issue Aug 13, 2023 · 1 comment
Closed

Additional patch for K6.4.y+ #54

safocl opened this issue Aug 13, 2023 · 1 comment

Comments

@safocl
Copy link

safocl commented Aug 13, 2023

dkms install produces error in src/r8168_n.c:

'skb_gso_reset'? [-Werror=implicit-function-declaration]
  432 |                 segs = skb_gso_segment(skb, features);
      |                               ^~~~~~~~~~~~~~~
      |                            skb_gso_reset

this patch fix it:

--- a/src/r8168_n.c     2023-08-13 03:33:06.977422132 +0400
+++ b/src/r8168_n.c     2023-08-13 03:38:39.767005101 +0400
@@ -81,6 +81,10 @@
 #include <linux/mdio.h>
 #endif

+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,0)
+#include <net/gso.h>
+#endif
+
 #include <asm/io.h>
 #include <asm/irq.h>

same error found in discussion

the kernel source line with this function definition

safocl added a commit to safocl/r8168 that referenced this issue Aug 13, 2023
@safocl
Copy link
Author

safocl commented Aug 14, 2023

detected misstake of the sublevel version -- need KERNEL_VERSION(6,4,10) instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants