[openwrt/openwrt] kernel: kmod-dsa-notag: Add driver

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 25 16:47:49 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/75f090ef960ecb4c042ffeb1f5bd931150a19714

commit 75f090ef960ecb4c042ffeb1f5bd931150a19714
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Sun Jul 20 19:53:36 2025 +0200

    kernel: kmod-dsa-notag: Add driver
    
    The CONFIG_B53 kernel config option will select this driver. Add
    the driver to the kernel config menu and make kmod-dsa-b53 depend on
    it.
    
    Link: https://github.com/openwrt/openwrt/pull/19480
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/kernel/linux/modules/netdevices.mk | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index ebd29ce601..ff581499ed 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -604,10 +604,25 @@ endef
 $(eval $(call KernelPackage,dsa))
 
 
+define KernelPackage/dsa-notag
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=DSA No-op tag driver
+  DEPENDS:=+kmod-dsa
+  KCONFIG:=CONFIG_NET_DSA_TAG_NONE
+  FILES:=$(LINUX_DIR)/net/dsa/tag_none.ko
+endef
+
+define KernelPackage/dsa-notag/description
+  Kernel module support for switches which don't tag frames over the CPU port.
+endef
+
+$(eval $(call KernelPackage,dsa-notag))
+
+
 define KernelPackage/dsa-b53
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Broadcom BCM53xx managed switch DSA support
-  DEPENDS:=+kmod-dsa
+  DEPENDS:=+kmod-dsa +kmod-dsa-notag
   KCONFIG:=CONFIG_B53 \
   CONFIG_NET_DSA_TAG_BRCM \
   CONFIG_NET_DSA_TAG_BRCM_LEGACY \




More information about the lede-commits mailing list