xref: /openbmc/linux/net/dsa/Kconfig (revision 31e67366)
1# SPDX-License-Identifier: GPL-2.0-only
2config HAVE_NET_DSA
3	def_bool y
4	depends on INET && NETDEVICES && !S390
5
6# Drivers must select NET_DSA and the appropriate tagging format
7
8menuconfig NET_DSA
9	tristate "Distributed Switch Architecture"
10	depends on HAVE_NET_DSA
11	depends on BRIDGE || BRIDGE=n
12	depends on HSR || HSR=n
13	select GRO_CELLS
14	select NET_SWITCHDEV
15	select PHYLINK
16	select NET_DEVLINK
17	help
18	  Say Y if you want to enable support for the hardware switches supported
19	  by the Distributed Switch Architecture.
20
21if NET_DSA
22
23# tagging formats
24config NET_DSA_TAG_8021Q
25	tristate
26	select VLAN_8021Q
27	help
28	  Unlike the other tagging protocols, the 802.1Q config option simply
29	  provides helpers for other tagging implementations that might rely on
30	  VLAN in one way or another. It is not a complete solution.
31
32	  Drivers which use these helpers should select this as dependency.
33
34config NET_DSA_TAG_AR9331
35	tristate "Tag driver for Atheros AR9331 SoC with built-in switch"
36	help
37	  Say Y or M if you want to enable support for tagging frames for
38	  the Atheros AR9331 SoC with built-in switch.
39
40config NET_DSA_TAG_BRCM_COMMON
41	tristate
42	default n
43
44config NET_DSA_TAG_BRCM
45	tristate "Tag driver for Broadcom switches using in-frame headers"
46	select NET_DSA_TAG_BRCM_COMMON
47	help
48	  Say Y if you want to enable support for tagging frames for the
49	  Broadcom switches which place the tag after the MAC source address.
50
51
52config NET_DSA_TAG_BRCM_PREPEND
53	tristate "Tag driver for Broadcom switches using prepended headers"
54	select NET_DSA_TAG_BRCM_COMMON
55	help
56	  Say Y if you want to enable support for tagging frames for the
57	  Broadcom switches which places the tag before the Ethernet header
58	  (prepended).
59
60config NET_DSA_TAG_HELLCREEK
61	tristate "Tag driver for Hirschmann Hellcreek TSN switches"
62	help
63	  Say Y or M if you want to enable support for tagging frames
64	  for the Hirschmann Hellcreek TSN switches.
65
66config NET_DSA_TAG_GSWIP
67	tristate "Tag driver for Lantiq / Intel GSWIP switches"
68	help
69	  Say Y or M if you want to enable support for tagging frames for the
70	  Lantiq / Intel GSWIP switches.
71
72config NET_DSA_TAG_DSA_COMMON
73	tristate
74
75config NET_DSA_TAG_DSA
76	tristate "Tag driver for Marvell switches using DSA headers"
77	select NET_DSA_TAG_DSA_COMMON
78	help
79	  Say Y or M if you want to enable support for tagging frames for the
80	  Marvell switches which use DSA headers.
81
82config NET_DSA_TAG_EDSA
83	tristate "Tag driver for Marvell switches using EtherType DSA headers"
84	select NET_DSA_TAG_DSA_COMMON
85	help
86	  Say Y or M if you want to enable support for tagging frames for the
87	  Marvell switches which use EtherType DSA headers.
88
89config NET_DSA_TAG_MTK
90	tristate "Tag driver for Mediatek switches"
91	help
92	  Say Y or M if you want to enable support for tagging frames for
93	  Mediatek switches.
94
95config NET_DSA_TAG_KSZ
96	tristate "Tag driver for Microchip 8795/9477/9893 families of switches"
97	help
98	  Say Y if you want to enable support for tagging frames for the
99	  Microchip 8795/9477/9893 families of switches.
100
101config NET_DSA_TAG_RTL4_A
102	tristate "Tag driver for Realtek 4 byte protocol A tags"
103	help
104	  Say Y or M if you want to enable support for tagging frames for the
105	  Realtek switches with 4 byte protocol A tags, sich as found in
106	  the Realtek RTL8366RB.
107
108config NET_DSA_TAG_OCELOT
109	tristate "Tag driver for Ocelot family of switches, using NPI port"
110	select PACKING
111	help
112	  Say Y or M if you want to enable NPI tagging for the Ocelot switches
113	  (VSC7511, VSC7512, VSC7513, VSC7514, VSC9953, VSC9959). In this mode,
114	  the frames over the Ethernet CPU port are prepended with a
115	  hardware-defined injection/extraction frame header.  Flow control
116	  (PAUSE frames) over the CPU port is not supported when operating in
117	  this mode.
118
119config NET_DSA_TAG_OCELOT_8021Q
120	tristate "Tag driver for Ocelot family of switches, using VLAN"
121	select NET_DSA_TAG_8021Q
122	help
123	  Say Y or M if you want to enable support for tagging frames with a
124	  custom VLAN-based header. Frames that require timestamping, such as
125	  PTP, are not delivered over Ethernet but over register-based MMIO.
126	  Flow control over the CPU port is functional in this mode. When using
127	  this mode, less TCAM resources (VCAP IS1, IS2, ES0) are available for
128	  use with tc-flower.
129
130config NET_DSA_TAG_QCA
131	tristate "Tag driver for Qualcomm Atheros QCA8K switches"
132	help
133	  Say Y or M if you want to enable support for tagging frames for
134	  the Qualcomm Atheros QCA8K switches.
135
136config NET_DSA_TAG_LAN9303
137	tristate "Tag driver for SMSC/Microchip LAN9303 family of switches"
138	help
139	  Say Y or M if you want to enable support for tagging frames for the
140	  SMSC/Microchip LAN9303 family of switches.
141
142config NET_DSA_TAG_SJA1105
143	tristate "Tag driver for NXP SJA1105 switches"
144	select NET_DSA_TAG_8021Q
145	select PACKING
146	help
147	  Say Y or M if you want to enable support for tagging frames with the
148	  NXP SJA1105 switch family. Both the native tagging protocol (which
149	  is only for link-local traffic) as well as non-native tagging (based
150	  on a custom 802.1Q VLAN header) are available.
151
152config NET_DSA_TAG_TRAILER
153	tristate "Tag driver for switches using a trailer tag"
154	help
155	  Say Y or M if you want to enable support for tagging frames at
156	  with a trailed. e.g. Marvell 88E6060.
157
158config NET_DSA_TAG_XRS700X
159	tristate "Tag driver for XRS700x switches"
160	help
161	  Say Y or M if you want to enable support for tagging frames for
162	  Arrow SpeedChips XRS700x switches that use a single byte tag trailer.
163
164endif
165