Merge tag 'for-linus-5.13-1' of git://github.com/cminyard/linux-ipmi
[linux-2.6-microblaze.git] / net / dsa / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 config 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
8 menuconfig 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
21 if NET_DSA
22
23 # tagging formats
24 config 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
34 config 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
40 config NET_DSA_TAG_BRCM_COMMON
41         tristate
42         default n
43
44 config 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
52 config 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
60 config 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
66 config 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
72 config NET_DSA_TAG_DSA_COMMON
73         tristate
74
75 config 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
82 config 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
89 config 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
95 config 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
101 config 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
108 config 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
119 config NET_DSA_TAG_OCELOT_8021Q
120         tristate "Tag driver for Ocelot family of switches, using VLAN"
121         depends on MSCC_OCELOT_SWITCH_LIB || \
122                   (MSCC_OCELOT_SWITCH_LIB=n && COMPILE_TEST)
123         select NET_DSA_TAG_8021Q
124         help
125           Say Y or M if you want to enable support for tagging frames with a
126           custom VLAN-based header. Frames that require timestamping, such as
127           PTP, are not delivered over Ethernet but over register-based MMIO.
128           Flow control over the CPU port is functional in this mode. When using
129           this mode, less TCAM resources (VCAP IS1, IS2, ES0) are available for
130           use with tc-flower.
131
132 config NET_DSA_TAG_QCA
133         tristate "Tag driver for Qualcomm Atheros QCA8K switches"
134         help
135           Say Y or M if you want to enable support for tagging frames for
136           the Qualcomm Atheros QCA8K switches.
137
138 config NET_DSA_TAG_LAN9303
139         tristate "Tag driver for SMSC/Microchip LAN9303 family of switches"
140         help
141           Say Y or M if you want to enable support for tagging frames for the
142           SMSC/Microchip LAN9303 family of switches.
143
144 config NET_DSA_TAG_SJA1105
145         tristate "Tag driver for NXP SJA1105 switches"
146         select NET_DSA_TAG_8021Q
147         select PACKING
148         help
149           Say Y or M if you want to enable support for tagging frames with the
150           NXP SJA1105 switch family. Both the native tagging protocol (which
151           is only for link-local traffic) as well as non-native tagging (based
152           on a custom 802.1Q VLAN header) are available.
153
154 config NET_DSA_TAG_TRAILER
155         tristate "Tag driver for switches using a trailer tag"
156         help
157           Say Y or M if you want to enable support for tagging frames at
158           with a trailed. e.g. Marvell 88E6060.
159
160 config NET_DSA_TAG_XRS700X
161         tristate "Tag driver for XRS700x switches"
162         help
163           Say Y or M if you want to enable support for tagging frames for
164           Arrow SpeedChips XRS700x switches that use a single byte tag trailer.
165
166 endif