summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2026-01-25 11:04:04 +0000
committerRobert Marko2026-01-25 21:14:16 +0000
commit24077b988549a6e366990fc8e61b3611f0536f43 (patch)
tree6171f6a0a6198804a1826c5673e26837d446eae2
parent53a525f346493ec7db1f1d1c17f4772c8cc4da58 (diff)
downloadopenwrt-24077b988549a6e366990fc8e61b3611f0536f43.tar.gz
microchipsw: enable DCB by default
Switchdev driver used by microchipsw supports DCB and has not storage constraints, so enable kernel and driver DCB support by default. Signed-off-by: Robert Marko <robert.marko@sartura.hr> (cherry picked from commit 4c0c7442dbc02db7f5ff170a4691e87f1ba8f741)
-rw-r--r--config/Config-kernel.in1
-rw-r--r--package/kernel/linux/modules/netdevices.mk3
2 files changed, 3 insertions, 1 deletions
diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 8692063229..83f25ef59e 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -1181,6 +1181,7 @@ config KERNEL_NET_L3_MASTER_DEV
config KERNEL_DCB
bool "Data Center Bridging support"
default y if TARGET_armsr_armv8
+ default y if TARGET_microchipsw
default y if TARGET_x86_64
help
This enables support for configuring Data Center Bridging (DCB)
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 67c8f9823f..61a9c696b1 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -2351,7 +2351,8 @@ define KernelPackage/sparx5-switch
DEPENDS:=@TARGET_microchipsw +kmod-phylink +kmod-ptp
KCONFIG:= \
CONFIG_SPARX5_SWITCH \
- CONFIG_LAN969X_SWITCH=y
+ CONFIG_LAN969X_SWITCH=y \
+ CONFIG_SPARX5_DCB=y
FILES:=$(LINUX_DIR)/drivers/net/ethernet/microchip/sparx5/sparx5-switch.ko
AUTOLOAD:=$(call AutoProbe,sparx5-switch,1)
endef