1# Distributed Switch Architecture [DSA] configuration options 2 3# Copyright (c) 2020 DENX Software Engineering GmbH 4# Lukasz Majewski <lukma@denx.de> 5# Copyright 2025 NXP 6# SPDX-License-Identifier: Apache-2.0 7 8menuconfig NET_DSA 9 bool "Distributed Switch Architecture support" 10 help 11 Enable Distributed Switch Architecture support. 12 13if NET_DSA 14 15DSA_PORT_COMPAT := zephyr,dsa-port 16 17config NET_DSA_DEPRECATED 18 bool "Distributed Switch Architecture support for legacy device" 19 select DEPRECATED 20 depends on ETH_DSA_SUPPORT_DEPRECATED 21 help 22 This is obsolete, and only used for legacy dsa device. 23 24config DSA_PORT_MAX_COUNT 25 int "DSA port max count" 26 default 8 27 help 28 Set DSA port max count. 29 30config DSA_TAG_SIZE 31 int "DSA tag size in bytes" 32 # These platforms are still using legacy DSA core driver 33 default 1 if DSA_KSZ8794 || DSA_KSZ8863 || DSA_KSZ8463 34 default 0 35 help 36 Set the DSA tag length in bytes. 37 38# Tag protocol ID found in <zephyr/dt-bindings/ethernet/dsa_tag_proto.h> 39config DSA_TAG_PROTOCOL_NETC 40 bool "Tag protocol - NETC" 41 default y 42 depends on $(dt_compat_any_has_prop,$(DSA_PORT_COMPAT),dsa-tag-protocol,1) 43 help 44 NXP NETC tag protocol. 45 46module = NET_DSA 47module-dep = NET_LOG 48module-str = Log level for DSA 49module-help = Enables core DSA code to output debug messages. 50source "subsys/net/Kconfig.template.log_config.net" 51 52endif # NET_DSA 53