1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 2b3422a31SBen Hutchingsconfig HAVE_NET_DSA 3b3422a31SBen Hutchings def_bool y 43a89eaa6SVivien Didelot depends on INET && NETDEVICES && !S390 5b3422a31SBen Hutchings 6b3422a31SBen Hutchings# Drivers must select NET_DSA and the appropriate tagging format 7b3422a31SBen Hutchings 80b9f9dfbSAndrew Lunnmenuconfig NET_DSA 9c6f15070SMathieu Olivari tristate "Distributed Switch Architecture" 10f4b6bcc7SJakub Kicinski depends on HAVE_NET_DSA 11ee0ab7a2SAndrew Lunn depends on BRIDGE || BRIDGE=n 12e131a563SAlexander Lobakin select GRO_CELLS 133a89eaa6SVivien Didelot select NET_SWITCHDEV 1411d8f3ddSFlorian Fainelli select PHYLINK 15f6b19b35SJiri Pirko select NET_DEVLINK 16a7f7f624SMasahiro Yamada help 17c6f15070SMathieu Olivari Say Y if you want to enable support for the hardware switches supported 18c6f15070SMathieu Olivari by the Distributed Switch Architecture. 1991da11f8SLennert Buytenhek 20b3422a31SBen Hutchingsif NET_DSA 2191da11f8SLennert Buytenhek 22f9bbe447SVladimir Oltean# tagging formats 23f9bbe447SVladimir Olteanconfig NET_DSA_TAG_8021Q 24129bd7caSFlorian Fainelli tristate 25f9bbe447SVladimir Oltean select VLAN_8021Q 26f9bbe447SVladimir Oltean help 27f9bbe447SVladimir Oltean Unlike the other tagging protocols, the 802.1Q config option simply 28f9bbe447SVladimir Oltean provides helpers for other tagging implementations that might rely on 29f9bbe447SVladimir Oltean VLAN in one way or another. It is not a complete solution. 30f9bbe447SVladimir Oltean 31f9bbe447SVladimir Oltean Drivers which use these helpers should select this as dependency. 32f9bbe447SVladimir Oltean 3348fda74fSOleksij Rempelconfig NET_DSA_TAG_AR9331 3448fda74fSOleksij Rempel tristate "Tag driver for Atheros AR9331 SoC with built-in switch" 3548fda74fSOleksij Rempel help 3648fda74fSOleksij Rempel Say Y or M if you want to enable support for tagging frames for 3748fda74fSOleksij Rempel the Atheros AR9331 SoC with built-in switch. 3848fda74fSOleksij Rempel 390b9f9dfbSAndrew Lunnconfig NET_DSA_TAG_BRCM_COMMON 400b9f9dfbSAndrew Lunn tristate 410b9f9dfbSAndrew Lunn default n 420b9f9dfbSAndrew Lunn 435037d532SFlorian Fainelliconfig NET_DSA_TAG_BRCM 440b9f9dfbSAndrew Lunn tristate "Tag driver for Broadcom switches using in-frame headers" 450b9f9dfbSAndrew Lunn select NET_DSA_TAG_BRCM_COMMON 460b9f9dfbSAndrew Lunn help 470b9f9dfbSAndrew Lunn Say Y if you want to enable support for tagging frames for the 480b9f9dfbSAndrew Lunn Broadcom switches which place the tag after the MAC source address. 490b9f9dfbSAndrew Lunn 505037d532SFlorian Fainelli 51b74b70c4SFlorian Fainelliconfig NET_DSA_TAG_BRCM_PREPEND 520b9f9dfbSAndrew Lunn tristate "Tag driver for Broadcom switches using prepended headers" 530b9f9dfbSAndrew Lunn select NET_DSA_TAG_BRCM_COMMON 540b9f9dfbSAndrew Lunn help 550b9f9dfbSAndrew Lunn Say Y if you want to enable support for tagging frames for the 560b9f9dfbSAndrew Lunn Broadcom switches which places the tag before the Ethernet header 570b9f9dfbSAndrew Lunn (prepended). 5891da11f8SLennert Buytenhek 59*01ef09caSKurt Kanzenbachconfig NET_DSA_TAG_HELLCREEK 60*01ef09caSKurt Kanzenbach tristate "Tag driver for Hirschmann Hellcreek TSN switches" 61*01ef09caSKurt Kanzenbach help 62*01ef09caSKurt Kanzenbach Say Y or M if you want to enable support for tagging frames 63*01ef09caSKurt Kanzenbach for the Hirschmann Hellcreek TSN switches. 64*01ef09caSKurt Kanzenbach 6579691192SHauke Mehrtensconfig NET_DSA_TAG_GSWIP 660b9f9dfbSAndrew Lunn tristate "Tag driver for Lantiq / Intel GSWIP switches" 670b9f9dfbSAndrew Lunn help 680b9f9dfbSAndrew Lunn Say Y or M if you want to enable support for tagging frames for the 690b9f9dfbSAndrew Lunn Lantiq / Intel GSWIP switches. 7079691192SHauke Mehrtens 710b9f9dfbSAndrew Lunnconfig NET_DSA_TAG_DSA 720b9f9dfbSAndrew Lunn tristate "Tag driver for Marvell switches using DSA headers" 730b9f9dfbSAndrew Lunn help 740b9f9dfbSAndrew Lunn Say Y or M if you want to enable support for tagging frames for the 750b9f9dfbSAndrew Lunn Marvell switches which use DSA headers. 768b8010fbSWoojung Huh 770b9f9dfbSAndrew Lunnconfig NET_DSA_TAG_EDSA 780b9f9dfbSAndrew Lunn tristate "Tag driver for Marvell switches using EtherType DSA headers" 790b9f9dfbSAndrew Lunn help 800b9f9dfbSAndrew Lunn Say Y or M if you want to enable support for tagging frames for the 810b9f9dfbSAndrew Lunn Marvell switches which use EtherType DSA headers. 82cafdc45cSJohn Crispin 835cd8985aSSean Wangconfig NET_DSA_TAG_MTK 840b9f9dfbSAndrew Lunn tristate "Tag driver for Mediatek switches" 850b9f9dfbSAndrew Lunn help 860b9f9dfbSAndrew Lunn Say Y or M if you want to enable support for tagging frames for 870b9f9dfbSAndrew Lunn Mediatek switches. 88e8fe177aSJuergen Beisert 890b9f9dfbSAndrew Lunnconfig NET_DSA_TAG_KSZ 90f4073e91SGeorge McCollister tristate "Tag driver for Microchip 8795/9477/9893 families of switches" 910b9f9dfbSAndrew Lunn help 920b9f9dfbSAndrew Lunn Say Y if you want to enable support for tagging frames for the 93f4073e91SGeorge McCollister Microchip 8795/9477/9893 families of switches. 940b9f9dfbSAndrew Lunn 95efd7fe68SLinus Walleijconfig NET_DSA_TAG_RTL4_A 96efd7fe68SLinus Walleij tristate "Tag driver for Realtek 4 byte protocol A tags" 97efd7fe68SLinus Walleij help 98efd7fe68SLinus Walleij Say Y or M if you want to enable support for tagging frames for the 99efd7fe68SLinus Walleij Realtek switches with 4 byte protocol A tags, sich as found in 100efd7fe68SLinus Walleij the Realtek RTL8366RB. 101efd7fe68SLinus Walleij 1028dce89aaSVladimir Olteanconfig NET_DSA_TAG_OCELOT 1038dce89aaSVladimir Oltean tristate "Tag driver for Ocelot family of switches" 1048dce89aaSVladimir Oltean select PACKING 1058dce89aaSVladimir Oltean help 1068dce89aaSVladimir Oltean Say Y or M if you want to enable support for tagging frames for the 1078dce89aaSVladimir Oltean Ocelot switches (VSC7511, VSC7512, VSC7513, VSC7514, VSC9959). 1088dce89aaSVladimir Oltean 109eb7b7211SAndrew Lunnconfig NET_DSA_TAG_QCA 1100b9f9dfbSAndrew Lunn tristate "Tag driver for Qualcomm Atheros QCA8K switches" 1110b9f9dfbSAndrew Lunn help 1120b9f9dfbSAndrew Lunn Say Y or M if you want to enable support for tagging frames for 1130b9f9dfbSAndrew Lunn the Qualcomm Atheros QCA8K switches. 1140b9f9dfbSAndrew Lunn 1150b9f9dfbSAndrew Lunnconfig NET_DSA_TAG_LAN9303 1160b9f9dfbSAndrew Lunn tristate "Tag driver for SMSC/Microchip LAN9303 family of switches" 1170b9f9dfbSAndrew Lunn help 1180b9f9dfbSAndrew Lunn Say Y or M if you want to enable support for tagging frames for the 1190b9f9dfbSAndrew Lunn SMSC/Microchip LAN9303 family of switches. 1200b9f9dfbSAndrew Lunn 121227d07a0SVladimir Olteanconfig NET_DSA_TAG_SJA1105 122227d07a0SVladimir Oltean tristate "Tag driver for NXP SJA1105 switches" 123227d07a0SVladimir Oltean select NET_DSA_TAG_8021Q 1246358f38cSVladimir Oltean select PACKING 125227d07a0SVladimir Oltean help 126227d07a0SVladimir Oltean Say Y or M if you want to enable support for tagging frames with the 127227d07a0SVladimir Oltean NXP SJA1105 switch family. Both the native tagging protocol (which 128227d07a0SVladimir Oltean is only for link-local traffic) as well as non-native tagging (based 129227d07a0SVladimir Oltean on a custom 802.1Q VLAN header) are available. 130227d07a0SVladimir Oltean 1310b9f9dfbSAndrew Lunnconfig NET_DSA_TAG_TRAILER 1320b9f9dfbSAndrew Lunn tristate "Tag driver for switches using a trailer tag" 1330b9f9dfbSAndrew Lunn help 1340b9f9dfbSAndrew Lunn Say Y or M if you want to enable support for tagging frames at 1350b9f9dfbSAndrew Lunn with a trailed. e.g. Marvell 88E6060. 136e8fe177aSJuergen Beisert 137b3422a31SBen Hutchingsendif 138