mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
34a430d7bd
Change the kconfig types to tristate and adjust the condition for declaring net_device::dsa_ptr to allow for this. Adjust the makefile so that if NET_DSA_MV88E6123_61_65=y and NET_DSA_MV88E6131=m or vice versa then both drivers are built-in. We could leave these options as bool and make NET_DSA_MV88E6XXX a user-selected option, but that would break existing configurations. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
60 lines
1.2 KiB
Text
60 lines
1.2 KiB
Text
menuconfig NET_DSA
|
|
tristate "Distributed Switch Architecture support"
|
|
default n
|
|
depends on EXPERIMENTAL && NETDEVICES && !S390
|
|
select PHYLIB
|
|
---help---
|
|
This allows you to use hardware switch chips that use
|
|
the Distributed Switch Architecture.
|
|
|
|
|
|
if NET_DSA
|
|
|
|
# tagging formats
|
|
config NET_DSA_TAG_DSA
|
|
bool
|
|
default n
|
|
|
|
config NET_DSA_TAG_EDSA
|
|
bool
|
|
default n
|
|
|
|
config NET_DSA_TAG_TRAILER
|
|
bool
|
|
default n
|
|
|
|
|
|
# switch drivers
|
|
config NET_DSA_MV88E6XXX
|
|
tristate
|
|
default n
|
|
|
|
config NET_DSA_MV88E6060
|
|
tristate "Marvell 88E6060 ethernet switch chip support"
|
|
select NET_DSA_TAG_TRAILER
|
|
---help---
|
|
This enables support for the Marvell 88E6060 ethernet switch
|
|
chip.
|
|
|
|
config NET_DSA_MV88E6XXX_NEED_PPU
|
|
bool
|
|
default n
|
|
|
|
config NET_DSA_MV88E6131
|
|
tristate "Marvell 88E6085/6095/6095F/6131 ethernet switch chip support"
|
|
select NET_DSA_MV88E6XXX
|
|
select NET_DSA_MV88E6XXX_NEED_PPU
|
|
select NET_DSA_TAG_DSA
|
|
---help---
|
|
This enables support for the Marvell 88E6085/6095/6095F/6131
|
|
ethernet switch chips.
|
|
|
|
config NET_DSA_MV88E6123_61_65
|
|
tristate "Marvell 88E6123/6161/6165 ethernet switch chip support"
|
|
select NET_DSA_MV88E6XXX
|
|
select NET_DSA_TAG_EDSA
|
|
---help---
|
|
This enables support for the Marvell 88E6123/6161/6165
|
|
ethernet switch chips.
|
|
|
|
endif
|