Kconfig 3.5 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2 3
config HAVE_NET_DSA
	def_bool y
V
Vivien Didelot 已提交
4
	depends on INET && NETDEVICES && !S390
5 6 7

# Drivers must select NET_DSA and the appropriate tagging format

8
menuconfig NET_DSA
9
	tristate "Distributed Switch Architecture"
10
	depends on HAVE_NET_DSA
A
Andrew Lunn 已提交
11
	depends on BRIDGE || BRIDGE=n
V
Vivien Didelot 已提交
12
	select NET_SWITCHDEV
13
	select PHYLINK
14
	select NET_DEVLINK
15 16 17
	---help---
	  Say Y if you want to enable support for the hardware switches supported
	  by the Distributed Switch Architecture.
18

19
if NET_DSA
20

21 22 23 24 25 26 27 28 29 30 31
# tagging formats
config NET_DSA_TAG_8021Q
	tristate "Tag driver for switches using custom 802.1Q VLAN headers"
	select VLAN_8021Q
	help
	  Unlike the other tagging protocols, the 802.1Q config option simply
	  provides helpers for other tagging implementations that might rely on
	  VLAN in one way or another. It is not a complete solution.

	  Drivers which use these helpers should select this as dependency.

32 33 34 35
config NET_DSA_TAG_BRCM_COMMON
	tristate
	default n

36
config NET_DSA_TAG_BRCM
37 38 39 40 41 42
	tristate "Tag driver for Broadcom switches using in-frame headers"
	select NET_DSA_TAG_BRCM_COMMON
	help
	  Say Y if you want to enable support for tagging frames for the
	  Broadcom switches which place the tag after the MAC source address.

43

44
config NET_DSA_TAG_BRCM_PREPEND
45 46 47 48 49 50 51 52 53 54 55 56
	tristate "Tag driver for Broadcom switches using prepended headers"
	select NET_DSA_TAG_BRCM_COMMON
	help
	  Say Y if you want to enable support for tagging frames for the
	  Broadcom switches which places the tag before the Ethernet header
	  (prepended).

config NET_DSA_TAG_GSWIP
	tristate "Tag driver for Lantiq / Intel GSWIP switches"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  Lantiq / Intel GSWIP switches.
57

58
config NET_DSA_TAG_DSA
59 60 61 62
	tristate "Tag driver for Marvell switches using DSA headers"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  Marvell switches which use DSA headers.
63

64
config NET_DSA_TAG_EDSA
65 66 67 68
	tristate "Tag driver for Marvell switches using EtherType DSA headers"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  Marvell switches which use EtherType DSA headers.
69

70 71 72 73 74 75
config NET_DSA_TAG_MTK
	tristate "Tag driver for Mediatek switches"
	help
	  Say Y or M if you want to enable support for tagging frames for
	  Mediatek switches.

76
config NET_DSA_TAG_KSZ
77
	tristate "Tag driver for Microchip 8795/9477/9893 families of switches"
78 79
	help
	  Say Y if you want to enable support for tagging frames for the
80
	  Microchip 8795/9477/9893 families of switches.
81

82 83 84 85 86
config NET_DSA_TAG_QCA
	tristate "Tag driver for Qualcomm Atheros QCA8K switches"
	help
	  Say Y or M if you want to enable support for tagging frames for
	  the Qualcomm Atheros QCA8K switches.
87

88 89 90 91 92
config NET_DSA_TAG_LAN9303
	tristate "Tag driver for SMSC/Microchip LAN9303 family of switches"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  SMSC/Microchip LAN9303 family of switches.
93

94 95 96
config NET_DSA_TAG_SJA1105
	tristate "Tag driver for NXP SJA1105 switches"
	select NET_DSA_TAG_8021Q
97
	select PACKING
98 99 100 101 102 103
	help
	  Say Y or M if you want to enable support for tagging frames with the
	  NXP SJA1105 switch family. Both the native tagging protocol (which
	  is only for link-local traffic) as well as non-native tagging (based
	  on a custom 802.1Q VLAN header) are available.

104
config NET_DSA_TAG_TRAILER
105 106 107 108
	tristate "Tag driver for switches using a trailer tag"
	help
	  Say Y or M if you want to enable support for tagging frames at
	  with a trailed. e.g. Marvell 88E6060.
109

110
endif