Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Ben Hutchings | b3422a3 | 2012-11-26 09:16:10 +0000 | [diff] [blame] | 2 | config HAVE_NET_DSA |
| 3 | def_bool y |
Vivien Didelot | 3a89eaa | 2017-01-09 16:49:26 -0500 | [diff] [blame] | 4 | depends on INET && NETDEVICES && !S390 |
Ben Hutchings | b3422a3 | 2012-11-26 09:16:10 +0000 | [diff] [blame] | 5 | |
| 6 | # Drivers must select NET_DSA and the appropriate tagging format |
| 7 | |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 8 | menuconfig NET_DSA |
Mathieu Olivari | c6f1507 | 2015-03-20 18:31:03 -0700 | [diff] [blame] | 9 | tristate "Distributed Switch Architecture" |
Jakub Kicinski | f4b6bcc | 2019-02-25 19:34:02 -0800 | [diff] [blame] | 10 | depends on HAVE_NET_DSA |
Andrew Lunn | ee0ab7a2 | 2017-11-11 16:29:41 +0100 | [diff] [blame] | 11 | depends on BRIDGE || BRIDGE=n |
Vivien Didelot | 3a89eaa | 2017-01-09 16:49:26 -0500 | [diff] [blame] | 12 | select NET_SWITCHDEV |
Florian Fainelli | 11d8f3d | 2018-05-10 13:17:32 -0700 | [diff] [blame] | 13 | select PHYLINK |
Jiri Pirko | f6b19b3 | 2019-03-24 11:14:38 +0100 | [diff] [blame] | 14 | select NET_DEVLINK |
Mathieu Olivari | c6f1507 | 2015-03-20 18:31:03 -0700 | [diff] [blame] | 15 | ---help--- |
| 16 | Say Y if you want to enable support for the hardware switches supported |
| 17 | by the Distributed Switch Architecture. |
Lennert Buytenhek | 91da11f | 2008-10-07 13:44:02 +0000 | [diff] [blame] | 18 | |
Ben Hutchings | b3422a3 | 2012-11-26 09:16:10 +0000 | [diff] [blame] | 19 | if NET_DSA |
Lennert Buytenhek | 91da11f | 2008-10-07 13:44:02 +0000 | [diff] [blame] | 20 | |
Vladimir Oltean | f9bbe44 | 2019-05-05 13:19:22 +0300 | [diff] [blame] | 21 | # tagging formats |
| 22 | config NET_DSA_TAG_8021Q |
| 23 | tristate "Tag driver for switches using custom 802.1Q VLAN headers" |
| 24 | select VLAN_8021Q |
| 25 | help |
| 26 | Unlike the other tagging protocols, the 802.1Q config option simply |
| 27 | provides helpers for other tagging implementations that might rely on |
| 28 | VLAN in one way or another. It is not a complete solution. |
| 29 | |
| 30 | Drivers which use these helpers should select this as dependency. |
| 31 | |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 32 | config NET_DSA_TAG_BRCM_COMMON |
| 33 | tristate |
| 34 | default n |
| 35 | |
Florian Fainelli | 5037d53 | 2014-08-27 17:04:55 -0700 | [diff] [blame] | 36 | config NET_DSA_TAG_BRCM |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 37 | tristate "Tag driver for Broadcom switches using in-frame headers" |
| 38 | select NET_DSA_TAG_BRCM_COMMON |
| 39 | help |
| 40 | Say Y if you want to enable support for tagging frames for the |
| 41 | Broadcom switches which place the tag after the MAC source address. |
| 42 | |
Florian Fainelli | 5037d53 | 2014-08-27 17:04:55 -0700 | [diff] [blame] | 43 | |
Florian Fainelli | b74b70c | 2017-11-10 15:22:54 -0800 | [diff] [blame] | 44 | config NET_DSA_TAG_BRCM_PREPEND |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 45 | tristate "Tag driver for Broadcom switches using prepended 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 places the tag before the Ethernet header |
| 50 | (prepended). |
Lennert Buytenhek | 91da11f | 2008-10-07 13:44:02 +0000 | [diff] [blame] | 51 | |
Hauke Mehrtens | 7969119 | 2018-09-09 22:16:43 +0200 | [diff] [blame] | 52 | config NET_DSA_TAG_GSWIP |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 53 | tristate "Tag driver for Lantiq / Intel GSWIP switches" |
| 54 | help |
| 55 | Say Y or M if you want to enable support for tagging frames for the |
| 56 | Lantiq / Intel GSWIP switches. |
Hauke Mehrtens | 7969119 | 2018-09-09 22:16:43 +0200 | [diff] [blame] | 57 | |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 58 | config NET_DSA_TAG_DSA |
| 59 | tristate "Tag driver for Marvell switches using DSA headers" |
| 60 | help |
| 61 | Say Y or M if you want to enable support for tagging frames for the |
| 62 | Marvell switches which use DSA headers. |
Woojung Huh | 8b8010f | 2017-05-31 20:19:06 +0000 | [diff] [blame] | 63 | |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 64 | config NET_DSA_TAG_EDSA |
| 65 | tristate "Tag driver for Marvell switches using EtherType DSA headers" |
| 66 | help |
| 67 | Say Y or M if you want to enable support for tagging frames for the |
| 68 | Marvell switches which use EtherType DSA headers. |
John Crispin | cafdc45 | 2016-09-15 16:26:40 +0200 | [diff] [blame] | 69 | |
Sean Wang | 5cd8985 | 2017-04-07 16:45:06 +0800 | [diff] [blame] | 70 | config NET_DSA_TAG_MTK |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 71 | tristate "Tag driver for Mediatek switches" |
| 72 | help |
| 73 | Say Y or M if you want to enable support for tagging frames for |
| 74 | Mediatek switches. |
Juergen Beisert | e8fe177 | 2017-04-18 10:48:24 +0200 | [diff] [blame] | 75 | |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 76 | config NET_DSA_TAG_KSZ |
George McCollister | f4073e9 | 2019-09-10 08:18:36 -0500 | [diff] [blame] | 77 | tristate "Tag driver for Microchip 8795/9477/9893 families of switches" |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 78 | help |
| 79 | Say Y if you want to enable support for tagging frames for the |
George McCollister | f4073e9 | 2019-09-10 08:18:36 -0500 | [diff] [blame] | 80 | Microchip 8795/9477/9893 families of switches. |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 81 | |
Andrew Lunn | eb7b721 | 2017-05-16 22:40:07 +0200 | [diff] [blame] | 82 | config NET_DSA_TAG_QCA |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 83 | tristate "Tag driver for Qualcomm Atheros QCA8K switches" |
| 84 | help |
| 85 | Say Y or M if you want to enable support for tagging frames for |
| 86 | the Qualcomm Atheros QCA8K switches. |
| 87 | |
| 88 | config NET_DSA_TAG_LAN9303 |
| 89 | tristate "Tag driver for SMSC/Microchip LAN9303 family of switches" |
| 90 | help |
| 91 | Say Y or M if you want to enable support for tagging frames for the |
| 92 | SMSC/Microchip LAN9303 family of switches. |
| 93 | |
Vladimir Oltean | 227d07a | 2019-05-05 13:19:27 +0300 | [diff] [blame] | 94 | config NET_DSA_TAG_SJA1105 |
| 95 | tristate "Tag driver for NXP SJA1105 switches" |
| 96 | select NET_DSA_TAG_8021Q |
Vladimir Oltean | 6358f38 | 2019-06-11 21:47:45 +0300 | [diff] [blame] | 97 | select PACKING |
Vladimir Oltean | 227d07a | 2019-05-05 13:19:27 +0300 | [diff] [blame] | 98 | help |
| 99 | Say Y or M if you want to enable support for tagging frames with the |
| 100 | NXP SJA1105 switch family. Both the native tagging protocol (which |
| 101 | is only for link-local traffic) as well as non-native tagging (based |
| 102 | on a custom 802.1Q VLAN header) are available. |
| 103 | |
Andrew Lunn | 0b9f9df | 2019-04-28 19:37:23 +0200 | [diff] [blame] | 104 | config NET_DSA_TAG_TRAILER |
| 105 | tristate "Tag driver for switches using a trailer tag" |
| 106 | help |
| 107 | Say Y or M if you want to enable support for tagging frames at |
| 108 | with a trailed. e.g. Marvell 88E6060. |
Juergen Beisert | e8fe177 | 2017-04-18 10:48:24 +0200 | [diff] [blame] | 109 | |
Ben Hutchings | b3422a3 | 2012-11-26 09:16:10 +0000 | [diff] [blame] | 110 | endif |