immortalwrt/package/kernel/r8101/patches/020-6.6-support.patch
Tianling Shen fe672a8cb8
r8101: fix build with kernel 6.6
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-08 14:46:48 +08:00

14 lines
261 B
Diff

--- 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>