xref: /OK3568_Linux_fs/kernel/net/dsa/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyunconfig HAVE_NET_DSA
3*4882a593Smuzhiyun	def_bool y
4*4882a593Smuzhiyun	depends on INET && NETDEVICES && !S390
5*4882a593Smuzhiyun
6*4882a593Smuzhiyun# Drivers must select NET_DSA and the appropriate tagging format
7*4882a593Smuzhiyun
8*4882a593Smuzhiyunmenuconfig NET_DSA
9*4882a593Smuzhiyun	tristate "Distributed Switch Architecture"
10*4882a593Smuzhiyun	depends on HAVE_NET_DSA
11*4882a593Smuzhiyun	depends on BRIDGE || BRIDGE=n
12*4882a593Smuzhiyun	select GRO_CELLS
13*4882a593Smuzhiyun	select NET_SWITCHDEV
14*4882a593Smuzhiyun	select PHYLINK
15*4882a593Smuzhiyun	select NET_DEVLINK
16*4882a593Smuzhiyun	help
17*4882a593Smuzhiyun	  Say Y if you want to enable support for the hardware switches supported
18*4882a593Smuzhiyun	  by the Distributed Switch Architecture.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunif NET_DSA
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun# tagging formats
23*4882a593Smuzhiyunconfig NET_DSA_TAG_8021Q
24*4882a593Smuzhiyun	tristate
25*4882a593Smuzhiyun	select VLAN_8021Q
26*4882a593Smuzhiyun	help
27*4882a593Smuzhiyun	  Unlike the other tagging protocols, the 802.1Q config option simply
28*4882a593Smuzhiyun	  provides helpers for other tagging implementations that might rely on
29*4882a593Smuzhiyun	  VLAN in one way or another. It is not a complete solution.
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	  Drivers which use these helpers should select this as dependency.
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunconfig NET_DSA_TAG_AR9331
34*4882a593Smuzhiyun	tristate "Tag driver for Atheros AR9331 SoC with built-in switch"
35*4882a593Smuzhiyun	help
36*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for
37*4882a593Smuzhiyun	  the Atheros AR9331 SoC with built-in switch.
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunconfig NET_DSA_TAG_BRCM_COMMON
40*4882a593Smuzhiyun	tristate
41*4882a593Smuzhiyun	default n
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunconfig NET_DSA_TAG_BRCM
44*4882a593Smuzhiyun	tristate "Tag driver for Broadcom switches using in-frame headers"
45*4882a593Smuzhiyun	select NET_DSA_TAG_BRCM_COMMON
46*4882a593Smuzhiyun	help
47*4882a593Smuzhiyun	  Say Y if you want to enable support for tagging frames for the
48*4882a593Smuzhiyun	  Broadcom switches which place the tag after the MAC source address.
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun
51*4882a593Smuzhiyunconfig NET_DSA_TAG_BRCM_PREPEND
52*4882a593Smuzhiyun	tristate "Tag driver for Broadcom switches using prepended headers"
53*4882a593Smuzhiyun	select NET_DSA_TAG_BRCM_COMMON
54*4882a593Smuzhiyun	help
55*4882a593Smuzhiyun	  Say Y if you want to enable support for tagging frames for the
56*4882a593Smuzhiyun	  Broadcom switches which places the tag before the Ethernet header
57*4882a593Smuzhiyun	  (prepended).
58*4882a593Smuzhiyun
59*4882a593Smuzhiyunconfig NET_DSA_TAG_GSWIP
60*4882a593Smuzhiyun	tristate "Tag driver for Lantiq / Intel GSWIP switches"
61*4882a593Smuzhiyun	help
62*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for the
63*4882a593Smuzhiyun	  Lantiq / Intel GSWIP switches.
64*4882a593Smuzhiyun
65*4882a593Smuzhiyunconfig NET_DSA_TAG_DSA
66*4882a593Smuzhiyun	tristate "Tag driver for Marvell switches using DSA headers"
67*4882a593Smuzhiyun	help
68*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for the
69*4882a593Smuzhiyun	  Marvell switches which use DSA headers.
70*4882a593Smuzhiyun
71*4882a593Smuzhiyunconfig NET_DSA_TAG_EDSA
72*4882a593Smuzhiyun	tristate "Tag driver for Marvell switches using EtherType DSA headers"
73*4882a593Smuzhiyun	help
74*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for the
75*4882a593Smuzhiyun	  Marvell switches which use EtherType DSA headers.
76*4882a593Smuzhiyun
77*4882a593Smuzhiyunconfig NET_DSA_TAG_MTK
78*4882a593Smuzhiyun	tristate "Tag driver for Mediatek switches"
79*4882a593Smuzhiyun	help
80*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for
81*4882a593Smuzhiyun	  Mediatek switches.
82*4882a593Smuzhiyun
83*4882a593Smuzhiyunconfig NET_DSA_TAG_KSZ
84*4882a593Smuzhiyun	tristate "Tag driver for Microchip 8795/9477/9893 families of switches"
85*4882a593Smuzhiyun	help
86*4882a593Smuzhiyun	  Say Y if you want to enable support for tagging frames for the
87*4882a593Smuzhiyun	  Microchip 8795/9477/9893 families of switches.
88*4882a593Smuzhiyun
89*4882a593Smuzhiyunconfig NET_DSA_TAG_RTL4_A
90*4882a593Smuzhiyun	tristate "Tag driver for Realtek 4 byte protocol A tags"
91*4882a593Smuzhiyun	help
92*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for the
93*4882a593Smuzhiyun	  Realtek switches with 4 byte protocol A tags, sich as found in
94*4882a593Smuzhiyun	  the Realtek RTL8366RB.
95*4882a593Smuzhiyun
96*4882a593Smuzhiyunconfig NET_DSA_TAG_OCELOT
97*4882a593Smuzhiyun	tristate "Tag driver for Ocelot family of switches"
98*4882a593Smuzhiyun	select PACKING
99*4882a593Smuzhiyun	help
100*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for the
101*4882a593Smuzhiyun	  Ocelot switches (VSC7511, VSC7512, VSC7513, VSC7514, VSC9959).
102*4882a593Smuzhiyun
103*4882a593Smuzhiyunconfig NET_DSA_TAG_QCA
104*4882a593Smuzhiyun	tristate "Tag driver for Qualcomm Atheros QCA8K switches"
105*4882a593Smuzhiyun	help
106*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for
107*4882a593Smuzhiyun	  the Qualcomm Atheros QCA8K switches.
108*4882a593Smuzhiyun
109*4882a593Smuzhiyunconfig NET_DSA_TAG_LAN9303
110*4882a593Smuzhiyun	tristate "Tag driver for SMSC/Microchip LAN9303 family of switches"
111*4882a593Smuzhiyun	help
112*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames for the
113*4882a593Smuzhiyun	  SMSC/Microchip LAN9303 family of switches.
114*4882a593Smuzhiyun
115*4882a593Smuzhiyunconfig NET_DSA_TAG_SJA1105
116*4882a593Smuzhiyun	tristate "Tag driver for NXP SJA1105 switches"
117*4882a593Smuzhiyun	select NET_DSA_TAG_8021Q
118*4882a593Smuzhiyun	select PACKING
119*4882a593Smuzhiyun	help
120*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames with the
121*4882a593Smuzhiyun	  NXP SJA1105 switch family. Both the native tagging protocol (which
122*4882a593Smuzhiyun	  is only for link-local traffic) as well as non-native tagging (based
123*4882a593Smuzhiyun	  on a custom 802.1Q VLAN header) are available.
124*4882a593Smuzhiyun
125*4882a593Smuzhiyunconfig NET_DSA_TAG_TRAILER
126*4882a593Smuzhiyun	tristate "Tag driver for switches using a trailer tag"
127*4882a593Smuzhiyun	help
128*4882a593Smuzhiyun	  Say Y or M if you want to enable support for tagging frames at
129*4882a593Smuzhiyun	  with a trailed. e.g. Marvell 88E6060.
130*4882a593Smuzhiyun
131*4882a593Smuzhiyunendif
132