mirror of
https://github.com/breeze303/nss-packages.git
synced 2025-12-16 08:44:52 +00:00
qca-mcs: Add support for kernel >= 6.6.29
kernel 6.6.29 added an additional parameter to `br_pass_frame_up` (bool promisc). Add a check for it and handle accordingly. Signed-off-by: Sean Khan <datapronix@protonmail.com>
This commit is contained in:
parent
1891a290e0
commit
d0669b3eb9
@ -1,7 +1,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=qca-mcs
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/qca-mcs.git
|
||||
PKG_SOURCE_DATE:=2023-09-13
|
||||
|
||||
14
qca-mcs/patches/0002-kernel-6.6.29.patch
Normal file
14
qca-mcs/patches/0002-kernel-6.6.29.patch
Normal file
@ -0,0 +1,14 @@
|
||||
--- 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, 6, 29))
|
||||
+ 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)
|
||||
Loading…
Reference in New Issue
Block a user