Kconfig 3.9 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2 3
config HAVE_NET_DSA
	def_bool y
V
Vivien Didelot 已提交
4
	depends on INET && NETDEVICES && !S390
5 6 7

# Drivers must select NET_DSA and the appropriate tagging format

8
menuconfig NET_DSA
9
	tristate "Distributed Switch Architecture"
10
	depends on HAVE_NET_DSA
A
Andrew Lunn 已提交
11
	depends on BRIDGE || BRIDGE=n
12
	select GRO_CELLS
V
Vivien Didelot 已提交
13
	select NET_SWITCHDEV
14
	select PHYLINK
15
	select NET_DEVLINK
16 17 18
	---help---
	  Say Y if you want to enable support for the hardware switches supported
	  by the Distributed Switch Architecture.
19

20
if NET_DSA
21

22 23
# tagging formats
config NET_DSA_TAG_8021Q
24
	tristate
25 26 27 28 29 30 31 32
	select VLAN_8021Q
	help
	  Unlike the other tagging protocols, the 802.1Q config option simply
	  provides helpers for other tagging implementations that might rely on
	  VLAN in one way or another. It is not a complete solution.

	  Drivers which use these helpers should select this as dependency.

33 34 35 36 37 38
config NET_DSA_TAG_AR9331
	tristate "Tag driver for Atheros AR9331 SoC with built-in switch"
	help
	  Say Y or M if you want to enable support for tagging frames for
	  the Atheros AR9331 SoC with built-in switch.

39 40 41 42
config NET_DSA_TAG_BRCM_COMMON
	tristate
	default n

43
config NET_DSA_TAG_BRCM
44 45 46 47 48 49
	tristate "Tag driver for Broadcom switches using in-frame headers"
	select NET_DSA_TAG_BRCM_COMMON
	help
	  Say Y if you want to enable support for tagging frames for the
	  Broadcom switches which place the tag after the MAC source address.

50

51
config NET_DSA_TAG_BRCM_PREPEND
52 53 54 55 56 57 58 59 60 61 62 63
	tristate "Tag driver for Broadcom switches using prepended headers"
	select NET_DSA_TAG_BRCM_COMMON
	help
	  Say Y if you want to enable support for tagging frames for the
	  Broadcom switches which places the tag before the Ethernet header
	  (prepended).

config NET_DSA_TAG_GSWIP
	tristate "Tag driver for Lantiq / Intel GSWIP switches"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  Lantiq / Intel GSWIP switches.
64

65
config NET_DSA_TAG_DSA
66 67 68 69
	tristate "Tag driver for Marvell switches using DSA headers"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  Marvell switches which use DSA headers.
70

71
config NET_DSA_TAG_EDSA
72 73 74 75
	tristate "Tag driver for Marvell switches using EtherType DSA headers"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  Marvell switches which use EtherType DSA headers.
76

77 78 79 80 81 82
config NET_DSA_TAG_MTK
	tristate "Tag driver for Mediatek switches"
	help
	  Say Y or M if you want to enable support for tagging frames for
	  Mediatek switches.

83
config NET_DSA_TAG_KSZ
84
	tristate "Tag driver for Microchip 8795/9477/9893 families of switches"
85 86
	help
	  Say Y if you want to enable support for tagging frames for the
87
	  Microchip 8795/9477/9893 families of switches.
88

89 90 91 92 93 94 95
config NET_DSA_TAG_OCELOT
	tristate "Tag driver for Ocelot family of switches"
	select PACKING
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  Ocelot switches (VSC7511, VSC7512, VSC7513, VSC7514, VSC9959).

96 97 98 99 100
config NET_DSA_TAG_QCA
	tristate "Tag driver for Qualcomm Atheros QCA8K switches"
	help
	  Say Y or M if you want to enable support for tagging frames for
	  the Qualcomm Atheros QCA8K switches.
101

102 103 104 105 106
config NET_DSA_TAG_LAN9303
	tristate "Tag driver for SMSC/Microchip LAN9303 family of switches"
	help
	  Say Y or M if you want to enable support for tagging frames for the
	  SMSC/Microchip LAN9303 family of switches.
107

108 109 110
config NET_DSA_TAG_SJA1105
	tristate "Tag driver for NXP SJA1105 switches"
	select NET_DSA_TAG_8021Q
111
	select PACKING
112 113 114 115 116 117
	help
	  Say Y or M if you want to enable support for tagging frames with the
	  NXP SJA1105 switch family. Both the native tagging protocol (which
	  is only for link-local traffic) as well as non-native tagging (based
	  on a custom 802.1Q VLAN header) are available.

118
config NET_DSA_TAG_TRAILER
119 120 121 122
	tristate "Tag driver for switches using a trailer tag"
	help
	  Say Y or M if you want to enable support for tagging frames at
	  with a trailed. e.g. Marvell 88E6060.
123

124
endif