r8101: fix build with kernel 6.6

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2024-04-08 14:46:48 +08:00
parent c3f9efdcd0
commit fe672a8cb8
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 14 additions and 1 deletions

View File

@ -7,7 +7,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=r8101
PKG_VERSION:=1.038.02
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@IMMORTALWRT

View File

@ -0,0 +1,13 @@
--- a/src/r8101_n.c
+++ b/src/r8101_n.c
@@ -69,6 +69,10 @@ This driver is modified from r8169.c in
#include <linux/mdio.h>
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10)
+#include <net/gso.h>
+#endif
+
#include <asm/io.h>
#include <asm/irq.h>