kernel: Activate CONFIG_NET_SWITCHDEV in generic config

The CONFIG_NET_SWITCHDEV option is needed by CONFIG_DSA and some other
options. It is boolean, we have to compile it into the kernel it self.
Activate it for all targets in the generic configuration, it is already
activated for most of them. This allows to install DSA drivers as a
module.

On the ramips/mt7620 target the kernel would grown by 4.5kB.

For some small targets which do not support a DSA switch by default the
option is deactivated.

Link: https://github.com/openwrt/openwrt/pull/17668
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens
2025-01-19 19:47:23 +01:00
parent a18d95f35b
commit abd0418684
56 changed files with 12 additions and 47 deletions

View File

@@ -1782,8 +1782,7 @@ define KernelPackage/mlxsw-spectrum
FILES:=$(LINUX_DIR)/drivers/net/ethernet/mellanox/mlxsw/mlxsw_spectrum.ko
KCONFIG:= \
CONFIG_MLXSW_SPECTRUM \
CONFIG_MLXSW_SPECTRUM_DCB=y \
CONFIG_NET_SWITCHDEV=y
CONFIG_MLXSW_SPECTRUM_DCB=y
AUTOLOAD:=$(call AutoProbe,mlxsw_spectrum)
endef