lede/package/qca/qca-mcs/patches/0002-kernel-6.x-suport.patch
2024-10-20 15:12:48 +08:00

15 lines
378 B
Diff

--- a/mc_osdep.h
+++ b/mc_osdep.h
@@ -24,7 +24,11 @@
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 0, 0))
static inline int os_br_pass_frame_up(struct sk_buff *skb)
{
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
+ return br_pass_frame_up(skb, false);
+#else
return br_pass_frame_up(skb);
+#endif
}
#else
static inline int os_br_pass_frame_up(struct sk_buff *skb)