2012-11-26 17:16:10 +08:00
|
|
|
config HAVE_NET_DSA
|
|
|
|
def_bool y
|
2017-01-10 05:49:26 +08:00
|
|
|
depends on INET && NETDEVICES && !S390
|
2012-11-26 17:16:10 +08:00
|
|
|
|
|
|
|
# Drivers must select NET_DSA and the appropriate tagging format
|
|
|
|
|
2019-04-29 01:37:23 +08:00
|
|
|
menuconfig NET_DSA
|
2015-03-21 09:31:03 +08:00
|
|
|
tristate "Distributed Switch Architecture"
|
2019-02-26 11:34:02 +08:00
|
|
|
depends on HAVE_NET_DSA
|
2017-11-11 23:29:41 +08:00
|
|
|
depends on BRIDGE || BRIDGE=n
|
2017-01-10 05:49:26 +08:00
|
|
|
select NET_SWITCHDEV
|
2018-05-11 04:17:32 +08:00
|
|
|
select PHYLINK
|
2019-03-24 18:14:38 +08:00
|
|
|
select NET_DEVLINK
|
2015-03-21 09:31:03 +08:00
|
|
|
---help---
|
|
|
|
Say Y if you want to enable support for the hardware switches supported
|
|
|
|
by the Distributed Switch Architecture.
|
net: Distributed Switch Architecture protocol support
Distributed Switch Architecture is a protocol for managing hardware
switch chips. It consists of a set of MII management registers and
commands to configure the switch, and an ethernet header format to
signal which of the ports of the switch a packet was received from
or is intended to be sent to.
The switches that this driver supports are typically embedded in
access points and routers, and a typical setup with a DSA switch
looks something like this:
+-----------+ +-----------+
| | RGMII | |
| +-------+ +------ 1000baseT MDI ("WAN")
| | | 6-port +------ 1000baseT MDI ("LAN1")
| CPU | | ethernet +------ 1000baseT MDI ("LAN2")
| |MIImgmt| switch +------ 1000baseT MDI ("LAN3")
| +-------+ w/5 PHYs +------ 1000baseT MDI ("LAN4")
| | | |
+-----------+ +-----------+
The switch driver presents each port on the switch as a separate
network interface to Linux, polls the switch to maintain software
link state of those ports, forwards MII management interface
accesses to those network interfaces (e.g. as done by ethtool) to
the switch, and exposes the switch's hardware statistics counters
via the appropriate Linux kernel interfaces.
This initial patch supports the MII management interface register
layout of the Marvell 88E6123, 88E6161 and 88E6165 switch chips, and
supports the "Ethertype DSA" packet tagging format.
(There is no officially registered ethertype for the Ethertype DSA
packet format, so we just grab a random one. The ethertype to use
is programmed into the switch, and the switch driver uses the value
of ETH_P_EDSA for this, so this define can be changed at any time in
the future if the one we chose is allocated to another protocol or
if Ethertype DSA gets its own officially registered ethertype, and
everything will continue to work.)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Nicolas Pitre <nico@marvell.com>
Tested-by: Byron Bradley <byron.bbradley@gmail.com>
Tested-by: Tim Ellis <tim.ellis@mac.com>
Tested-by: Peter van Valderen <linux@ddcrew.com>
Tested-by: Dirk Teurlings <dirk@upexia.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-07 21:44:02 +08:00
|
|
|
|
2012-11-26 17:16:10 +08:00
|
|
|
if NET_DSA
|
net: Distributed Switch Architecture protocol support
Distributed Switch Architecture is a protocol for managing hardware
switch chips. It consists of a set of MII management registers and
commands to configure the switch, and an ethernet header format to
signal which of the ports of the switch a packet was received from
or is intended to be sent to.
The switches that this driver supports are typically embedded in
access points and routers, and a typical setup with a DSA switch
looks something like this:
+-----------+ +-----------+
| | RGMII | |
| +-------+ +------ 1000baseT MDI ("WAN")
| | | 6-port +------ 1000baseT MDI ("LAN1")
| CPU | | ethernet +------ 1000baseT MDI ("LAN2")
| |MIImgmt| switch +------ 1000baseT MDI ("LAN3")
| +-------+ w/5 PHYs +------ 1000baseT MDI ("LAN4")
| | | |
+-----------+ +-----------+
The switch driver presents each port on the switch as a separate
network interface to Linux, polls the switch to maintain software
link state of those ports, forwards MII management interface
accesses to those network interfaces (e.g. as done by ethtool) to
the switch, and exposes the switch's hardware statistics counters
via the appropriate Linux kernel interfaces.
This initial patch supports the MII management interface register
layout of the Marvell 88E6123, 88E6161 and 88E6165 switch chips, and
supports the "Ethertype DSA" packet tagging format.
(There is no officially registered ethertype for the Ethertype DSA
packet format, so we just grab a random one. The ethertype to use
is programmed into the switch, and the switch driver uses the value
of ETH_P_EDSA for this, so this define can be changed at any time in
the future if the one we chose is allocated to another protocol or
if Ethertype DSA gets its own officially registered ethertype, and
everything will continue to work.)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Nicolas Pitre <nico@marvell.com>
Tested-by: Byron Bradley <byron.bbradley@gmail.com>
Tested-by: Tim Ellis <tim.ellis@mac.com>
Tested-by: Peter van Valderen <linux@ddcrew.com>
Tested-by: Dirk Teurlings <dirk@upexia.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-07 21:44:02 +08:00
|
|
|
|
2019-04-29 01:37:23 +08:00
|
|
|
config NET_DSA_TAG_BRCM_COMMON
|
|
|
|
tristate
|
|
|
|
default n
|
|
|
|
|
2014-08-28 08:04:55 +08:00
|
|
|
config NET_DSA_TAG_BRCM
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
|
|
|
|
2014-08-28 08:04:55 +08:00
|
|
|
|
2017-11-11 07:22:54 +08:00
|
|
|
config NET_DSA_TAG_BRCM_PREPEND
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
2017-11-11 07:22:54 +08:00
|
|
|
|
2008-10-07 21:45:02 +08:00
|
|
|
config NET_DSA_TAG_DSA
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
2008-10-07 21:45:02 +08:00
|
|
|
|
net: Distributed Switch Architecture protocol support
Distributed Switch Architecture is a protocol for managing hardware
switch chips. It consists of a set of MII management registers and
commands to configure the switch, and an ethernet header format to
signal which of the ports of the switch a packet was received from
or is intended to be sent to.
The switches that this driver supports are typically embedded in
access points and routers, and a typical setup with a DSA switch
looks something like this:
+-----------+ +-----------+
| | RGMII | |
| +-------+ +------ 1000baseT MDI ("WAN")
| | | 6-port +------ 1000baseT MDI ("LAN1")
| CPU | | ethernet +------ 1000baseT MDI ("LAN2")
| |MIImgmt| switch +------ 1000baseT MDI ("LAN3")
| +-------+ w/5 PHYs +------ 1000baseT MDI ("LAN4")
| | | |
+-----------+ +-----------+
The switch driver presents each port on the switch as a separate
network interface to Linux, polls the switch to maintain software
link state of those ports, forwards MII management interface
accesses to those network interfaces (e.g. as done by ethtool) to
the switch, and exposes the switch's hardware statistics counters
via the appropriate Linux kernel interfaces.
This initial patch supports the MII management interface register
layout of the Marvell 88E6123, 88E6161 and 88E6165 switch chips, and
supports the "Ethertype DSA" packet tagging format.
(There is no officially registered ethertype for the Ethertype DSA
packet format, so we just grab a random one. The ethertype to use
is programmed into the switch, and the switch driver uses the value
of ETH_P_EDSA for this, so this define can be changed at any time in
the future if the one we chose is allocated to another protocol or
if Ethertype DSA gets its own officially registered ethertype, and
everything will continue to work.)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Nicolas Pitre <nico@marvell.com>
Tested-by: Byron Bradley <byron.bbradley@gmail.com>
Tested-by: Tim Ellis <tim.ellis@mac.com>
Tested-by: Peter van Valderen <linux@ddcrew.com>
Tested-by: Dirk Teurlings <dirk@upexia.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-07 21:44:02 +08:00
|
|
|
config NET_DSA_TAG_EDSA
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
net: Distributed Switch Architecture protocol support
Distributed Switch Architecture is a protocol for managing hardware
switch chips. It consists of a set of MII management registers and
commands to configure the switch, and an ethernet header format to
signal which of the ports of the switch a packet was received from
or is intended to be sent to.
The switches that this driver supports are typically embedded in
access points and routers, and a typical setup with a DSA switch
looks something like this:
+-----------+ +-----------+
| | RGMII | |
| +-------+ +------ 1000baseT MDI ("WAN")
| | | 6-port +------ 1000baseT MDI ("LAN1")
| CPU | | ethernet +------ 1000baseT MDI ("LAN2")
| |MIImgmt| switch +------ 1000baseT MDI ("LAN3")
| +-------+ w/5 PHYs +------ 1000baseT MDI ("LAN4")
| | | |
+-----------+ +-----------+
The switch driver presents each port on the switch as a separate
network interface to Linux, polls the switch to maintain software
link state of those ports, forwards MII management interface
accesses to those network interfaces (e.g. as done by ethtool) to
the switch, and exposes the switch's hardware statistics counters
via the appropriate Linux kernel interfaces.
This initial patch supports the MII management interface register
layout of the Marvell 88E6123, 88E6161 and 88E6165 switch chips, and
supports the "Ethertype DSA" packet tagging format.
(There is no officially registered ethertype for the Ethertype DSA
packet format, so we just grab a random one. The ethertype to use
is programmed into the switch, and the switch driver uses the value
of ETH_P_EDSA for this, so this define can be changed at any time in
the future if the one we chose is allocated to another protocol or
if Ethertype DSA gets its own officially registered ethertype, and
everything will continue to work.)
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Tested-by: Nicolas Pitre <nico@marvell.com>
Tested-by: Byron Bradley <byron.bbradley@gmail.com>
Tested-by: Tim Ellis <tim.ellis@mac.com>
Tested-by: Peter van Valderen <linux@ddcrew.com>
Tested-by: Dirk Teurlings <dirk@upexia.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-10-07 21:44:02 +08:00
|
|
|
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
|
|
|
|
|
|
|
config NET_DSA_TAG_KSZ_COMMON
|
|
|
|
tristate
|
|
|
|
default n
|
2018-09-10 04:16:43 +08:00
|
|
|
|
2017-06-01 04:19:06 +08:00
|
|
|
config NET_DSA_TAG_KSZ
|
2019-04-29 01:37:23 +08:00
|
|
|
tristate "Tag driver for Microchip 9893 family of switches"
|
|
|
|
select NET_DSA_TAG_KSZ_COMMON
|
|
|
|
help
|
|
|
|
Say Y if you want to enable support for tagging frames for the
|
|
|
|
Microchip 9893 family of switches.
|
2017-06-01 04:19:06 +08:00
|
|
|
|
2018-12-15 08:58:04 +08:00
|
|
|
config NET_DSA_TAG_KSZ9477
|
2019-04-29 01:37:23 +08:00
|
|
|
tristate "Tag driver for Microchip 9477 family of switches"
|
|
|
|
select NET_DSA_TAG_KSZ_COMMON
|
|
|
|
help
|
|
|
|
Say Y if you want to enable support for tagging frames for the
|
|
|
|
Microchip 9477 family of switches.
|
2018-12-15 08:58:04 +08:00
|
|
|
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
2012-11-26 17:16:10 +08:00
|
|
|
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
2016-09-15 22:26:40 +08:00
|
|
|
|
2017-05-17 04:40:07 +08:00
|
|
|
config NET_DSA_TAG_TRAILER
|
2019-04-29 01:37:23 +08:00
|
|
|
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.
|
2017-04-18 16:48:24 +08:00
|
|
|
|
2012-11-26 17:16:10 +08:00
|
|
|
endif
|