blob: 8cb87b5067ee2c0659cabbe316058c3432aa0348 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Ben Hutchingsb3422a32012-11-26 09:16:10 +00002
Andrew Lunn0b9f9df2019-04-28 19:37:23 +02003menuconfig NET_DSA
Mathieu Olivaric6f15072015-03-20 18:31:03 -07004 tristate "Distributed Switch Architecture"
Andrew Lunnee0ab7a22017-11-11 16:29:41 +01005 depends on BRIDGE || BRIDGE=n
Florian Fainelli94ead4c2021-02-19 21:12:21 -08006 depends on HSR || HSR=n
Alexander Lobakin227d7202021-03-19 15:46:30 +00007 depends on INET && NETDEVICES
Alexander Lobakine131a562020-04-21 16:41:08 +03008 select GRO_CELLS
Vivien Didelot3a89eaa2017-01-09 16:49:26 -05009 select NET_SWITCHDEV
Florian Fainelli11d8f3d2018-05-10 13:17:32 -070010 select PHYLINK
Jiri Pirkof6b19b32019-03-24 11:14:38 +010011 select NET_DEVLINK
Oleksij Rempel4a52dd82021-04-28 15:09:46 +020012 imply NET_SELFTESTS
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090013 help
Mathieu Olivaric6f15072015-03-20 18:31:03 -070014 Say Y if you want to enable support for the hardware switches supported
15 by the Distributed Switch Architecture.
Lennert Buytenhek91da11f2008-10-07 13:44:02 +000016
Ben Hutchingsb3422a32012-11-26 09:16:10 +000017if NET_DSA
Lennert Buytenhek91da11f2008-10-07 13:44:02 +000018
Alexander Lobakin227d7202021-03-19 15:46:30 +000019# Drivers must select the appropriate tagging format(s)
20
Oleksij Rempel48fda742019-12-18 09:02:14 +010021config NET_DSA_TAG_AR9331
22 tristate "Tag driver for Atheros AR9331 SoC with built-in switch"
23 help
24 Say Y or M if you want to enable support for tagging frames for
25 the Atheros AR9331 SoC with built-in switch.
26
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020027config NET_DSA_TAG_BRCM_COMMON
28 tristate
29 default n
30
Florian Fainelli5037d532014-08-27 17:04:55 -070031config NET_DSA_TAG_BRCM
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020032 tristate "Tag driver for Broadcom switches using in-frame headers"
33 select NET_DSA_TAG_BRCM_COMMON
34 help
35 Say Y if you want to enable support for tagging frames for the
36 Broadcom switches which place the tag after the MAC source address.
37
Álvaro Fernández Rojas964dbf182021-03-17 11:29:26 +010038config NET_DSA_TAG_BRCM_LEGACY
39 tristate "Tag driver for Broadcom legacy switches using in-frame headers"
40 select NET_DSA_TAG_BRCM_COMMON
41 help
42 Say Y if you want to enable support for tagging frames for the
43 Broadcom legacy switches which place the tag after the MAC source
44 address.
Florian Fainelli5037d532014-08-27 17:04:55 -070045
Florian Fainellib74b70c2017-11-10 15:22:54 -080046config NET_DSA_TAG_BRCM_PREPEND
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020047 tristate "Tag driver for Broadcom switches using prepended headers"
48 select NET_DSA_TAG_BRCM_COMMON
49 help
50 Say Y if you want to enable support for tagging frames for the
51 Broadcom switches which places the tag before the Ethernet header
52 (prepended).
Lennert Buytenhek91da11f2008-10-07 13:44:02 +000053
Kurt Kanzenbach01ef09c2020-11-03 08:10:54 +010054config NET_DSA_TAG_HELLCREEK
55 tristate "Tag driver for Hirschmann Hellcreek TSN switches"
56 help
57 Say Y or M if you want to enable support for tagging frames
58 for the Hirschmann Hellcreek TSN switches.
59
Hauke Mehrtens79691192018-09-09 22:16:43 +020060config NET_DSA_TAG_GSWIP
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020061 tristate "Tag driver for Lantiq / Intel GSWIP switches"
62 help
63 Say Y or M if you want to enable support for tagging frames for the
64 Lantiq / Intel GSWIP switches.
Hauke Mehrtens79691192018-09-09 22:16:43 +020065
Tobias Waldekranz469ee5f2020-11-15 00:45:57 +010066config NET_DSA_TAG_DSA_COMMON
67 tristate
68
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020069config NET_DSA_TAG_DSA
70 tristate "Tag driver for Marvell switches using DSA headers"
Tobias Waldekranz469ee5f2020-11-15 00:45:57 +010071 select NET_DSA_TAG_DSA_COMMON
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020072 help
73 Say Y or M if you want to enable support for tagging frames for the
74 Marvell switches which use DSA headers.
Woojung Huh8b8010f2017-05-31 20:19:06 +000075
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020076config NET_DSA_TAG_EDSA
77 tristate "Tag driver for Marvell switches using EtherType DSA headers"
Tobias Waldekranz469ee5f2020-11-15 00:45:57 +010078 select NET_DSA_TAG_DSA_COMMON
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020079 help
80 Say Y or M if you want to enable support for tagging frames for the
81 Marvell switches which use EtherType DSA headers.
John Crispincafdc452016-09-15 16:26:40 +020082
Sean Wang5cd89852017-04-07 16:45:06 +080083config NET_DSA_TAG_MTK
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020084 tristate "Tag driver for Mediatek switches"
85 help
86 Say Y or M if you want to enable support for tagging frames for
87 Mediatek switches.
Juergen Beiserte8fe1772017-04-18 10:48:24 +020088
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020089config NET_DSA_TAG_KSZ
George McCollisterf4073e92019-09-10 08:18:36 -050090 tristate "Tag driver for Microchip 8795/9477/9893 families of switches"
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020091 help
92 Say Y if you want to enable support for tagging frames for the
George McCollisterf4073e92019-09-10 08:18:36 -050093 Microchip 8795/9477/9893 families of switches.
Andrew Lunn0b9f9df2019-04-28 19:37:23 +020094
Vladimir Oltean8dce89aa2019-11-14 17:03:29 +020095config NET_DSA_TAG_OCELOT
Vladimir Oltean7c83a7c2021-01-29 03:00:08 +020096 tristate "Tag driver for Ocelot family of switches, using NPI port"
Vladimir Oltean8dce89aa2019-11-14 17:03:29 +020097 select PACKING
98 help
Vladimir Oltean7c83a7c2021-01-29 03:00:08 +020099 Say Y or M if you want to enable NPI tagging for the Ocelot switches
100 (VSC7511, VSC7512, VSC7513, VSC7514, VSC9953, VSC9959). In this mode,
101 the frames over the Ethernet CPU port are prepended with a
102 hardware-defined injection/extraction frame header. Flow control
103 (PAUSE frames) over the CPU port is not supported when operating in
104 this mode.
105
106config NET_DSA_TAG_OCELOT_8021Q
107 tristate "Tag driver for Ocelot family of switches, using VLAN"
Vladimir Oltean7c83a7c2021-01-29 03:00:08 +0200108 help
109 Say Y or M if you want to enable support for tagging frames with a
110 custom VLAN-based header. Frames that require timestamping, such as
111 PTP, are not delivered over Ethernet but over register-based MMIO.
112 Flow control over the CPU port is functional in this mode. When using
113 this mode, less TCAM resources (VCAP IS1, IS2, ES0) are available for
114 use with tc-flower.
Vladimir Oltean8dce89aa2019-11-14 17:03:29 +0200115
Andrew Lunneb7b7212017-05-16 22:40:07 +0200116config NET_DSA_TAG_QCA
Andrew Lunn0b9f9df2019-04-28 19:37:23 +0200117 tristate "Tag driver for Qualcomm Atheros QCA8K switches"
118 help
119 Say Y or M if you want to enable support for tagging frames for
120 the Qualcomm Atheros QCA8K switches.
121
Alvin Šipraga9cb8edd2021-10-18 11:37:58 +0200122config NET_DSA_TAG_RTL4_A
123 tristate "Tag driver for Realtek 4 byte protocol A tags"
124 help
125 Say Y or M if you want to enable support for tagging frames for the
126 Realtek switches with 4 byte protocol A tags, sich as found in
127 the Realtek RTL8366RB.
128
Alvin Šipraga1521d5a2021-10-18 11:38:00 +0200129config NET_DSA_TAG_RTL8_4
130 tristate "Tag driver for Realtek 8 byte protocol 4 tags"
131 help
132 Say Y or M if you want to enable support for tagging frames for Realtek
133 switches with 8 byte protocol 4 tags, such as the Realtek RTL8365MB-VC.
134
Andrew Lunn0b9f9df2019-04-28 19:37:23 +0200135config NET_DSA_TAG_LAN9303
136 tristate "Tag driver for SMSC/Microchip LAN9303 family of switches"
137 help
138 Say Y or M if you want to enable support for tagging frames for the
139 SMSC/Microchip LAN9303 family of switches.
140
Vladimir Oltean227d07a2019-05-05 13:19:27 +0300141config NET_DSA_TAG_SJA1105
142 tristate "Tag driver for NXP SJA1105 switches"
Vladimir Oltean6358f382019-06-11 21:47:45 +0300143 select PACKING
Vladimir Oltean227d07a2019-05-05 13:19:27 +0300144 help
145 Say Y or M if you want to enable support for tagging frames with the
146 NXP SJA1105 switch family. Both the native tagging protocol (which
147 is only for link-local traffic) as well as non-native tagging (based
148 on a custom 802.1Q VLAN header) are available.
149
Andrew Lunn0b9f9df2019-04-28 19:37:23 +0200150config NET_DSA_TAG_TRAILER
151 tristate "Tag driver for switches using a trailer tag"
152 help
153 Say Y or M if you want to enable support for tagging frames at
154 with a trailed. e.g. Marvell 88E6060.
Juergen Beiserte8fe1772017-04-18 10:48:24 +0200155
George McCollister54a52822021-01-14 13:57:32 -0600156config NET_DSA_TAG_XRS700X
157 tristate "Tag driver for XRS700x switches"
158 help
159 Say Y or M if you want to enable support for tagging frames for
160 Arrow SpeedChips XRS700x switches that use a single byte tag trailer.
161
Ben Hutchingsb3422a32012-11-26 09:16:10 +0000162endif