xref: /openbmc/linux/net/dsa/Kconfig (revision f6b19b35)
1b3422a31SBen Hutchingsconfig HAVE_NET_DSA
2b3422a31SBen Hutchings	def_bool y
33a89eaa6SVivien Didelot	depends on INET && NETDEVICES && !S390
4b3422a31SBen Hutchings
5b3422a31SBen Hutchings# Drivers must select NET_DSA and the appropriate tagging format
6b3422a31SBen Hutchings
73b158859SBen Hutchingsconfig NET_DSA
8c6f15070SMathieu Olivari	tristate "Distributed Switch Architecture"
9f4b6bcc7SJakub Kicinski	depends on HAVE_NET_DSA
10ee0ab7a2SAndrew Lunn	depends on BRIDGE || BRIDGE=n
113a89eaa6SVivien Didelot	select NET_SWITCHDEV
1211d8f3ddSFlorian Fainelli	select PHYLINK
13f6b19b35SJiri Pirko	select NET_DEVLINK
14c6f15070SMathieu Olivari	---help---
15c6f15070SMathieu Olivari	  Say Y if you want to enable support for the hardware switches supported
16c6f15070SMathieu Olivari	  by the Distributed Switch Architecture.
1791da11f8SLennert Buytenhek
18b3422a31SBen Hutchingsif NET_DSA
1991da11f8SLennert Buytenhek
202a93c1a3SFlorian Fainelliconfig NET_DSA_LEGACY
212a93c1a3SFlorian Fainelli	bool "Support for older platform device and Device Tree registration"
222a93c1a3SFlorian Fainelli	default y
232a93c1a3SFlorian Fainelli	---help---
242a93c1a3SFlorian Fainelli	  Say Y if you want to enable support for the older platform device and
252a93c1a3SFlorian Fainelli	  deprecated Device Tree binding registration.
262a93c1a3SFlorian Fainelli
272a93c1a3SFlorian Fainelli	  This feature is scheduled for removal in 4.17.
282a93c1a3SFlorian Fainelli
2991da11f8SLennert Buytenhek# tagging formats
305037d532SFlorian Fainelliconfig NET_DSA_TAG_BRCM
315037d532SFlorian Fainelli	bool
325037d532SFlorian Fainelli
33b74b70c4SFlorian Fainelliconfig NET_DSA_TAG_BRCM_PREPEND
34b74b70c4SFlorian Fainelli	bool
35b74b70c4SFlorian Fainelli
36cf85d08fSLennert Buytenhekconfig NET_DSA_TAG_DSA
37b3422a31SBen Hutchings	bool
38cf85d08fSLennert Buytenhek
3991da11f8SLennert Buytenhekconfig NET_DSA_TAG_EDSA
40b3422a31SBen Hutchings	bool
4191da11f8SLennert Buytenhek
4279691192SHauke Mehrtensconfig NET_DSA_TAG_GSWIP
4379691192SHauke Mehrtens	bool
4479691192SHauke Mehrtens
458b8010fbSWoojung Huhconfig NET_DSA_TAG_KSZ
468b8010fbSWoojung Huh	bool
478b8010fbSWoojung Huh
4839d6b96fSTristram Haconfig NET_DSA_TAG_KSZ9477
4939d6b96fSTristram Ha	bool
5039d6b96fSTristram Ha	select NET_DSA_TAG_KSZ
5139d6b96fSTristram Ha
52eb7b7211SAndrew Lunnconfig NET_DSA_TAG_LAN9303
53cafdc45cSJohn Crispin	bool
54cafdc45cSJohn Crispin
555cd8985aSSean Wangconfig NET_DSA_TAG_MTK
565cd8985aSSean Wang	bool
57e8fe177aSJuergen Beisert
58eb7b7211SAndrew Lunnconfig NET_DSA_TAG_TRAILER
59eb7b7211SAndrew Lunn	bool
60eb7b7211SAndrew Lunn
61eb7b7211SAndrew Lunnconfig NET_DSA_TAG_QCA
62e8fe177aSJuergen Beisert	bool
63e8fe177aSJuergen Beisert
64b3422a31SBen Hutchingsendif
65