mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
0266f79778
When BRIDGE is a loadable module, MLXSW_SPECTRUM mustn't be built-in:
drivers/built-in.o: In function `mlxsw_sp_bridge_device_create':
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c:145: undefined reference to `br_vlan_enabled'
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c:158: undefined reference to `br_multicast_enabled'
drivers/built-in.o: In function `mlxsw_sp_dev_rif_type':
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:2972: undefined reference to `br_vlan_enabled'
drivers/built-in.o: In function `mlxsw_sp_inetaddr_vlan_event':
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:3310: undefined reference to `br_vlan_enabled'
Add Kconfig dependency to enforce usable configurations.
Fixes: c57529e1d5
("mlxsw: spectrum: Replace vPorts with Port-VLAN")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reported-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Tested-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
106 lines
3.1 KiB
Plaintext
106 lines
3.1 KiB
Plaintext
#
|
|
# Mellanox switch drivers configuration
|
|
#
|
|
|
|
config MLXSW_CORE
|
|
tristate "Mellanox Technologies Switch ASICs support"
|
|
depends on MAY_USE_DEVLINK
|
|
---help---
|
|
This driver supports Mellanox Technologies Switch ASICs family.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxsw_core.
|
|
|
|
config MLXSW_CORE_HWMON
|
|
bool "HWMON support for Mellanox Technologies Switch ASICs"
|
|
depends on MLXSW_CORE && HWMON
|
|
depends on !(MLXSW_CORE=y && HWMON=m)
|
|
default y
|
|
---help---
|
|
Say Y here if you want to expose HWMON interface on mlxsw devices.
|
|
|
|
config MLXSW_CORE_THERMAL
|
|
bool "Thermal zone support for Mellanox Technologies Switch ASICs"
|
|
depends on MLXSW_CORE && THERMAL
|
|
depends on !(MLXSW_CORE=y && THERMAL=m)
|
|
default y
|
|
---help---
|
|
Say Y here if you want to automatically control fans speed according
|
|
ambient temperature reported by ASIC.
|
|
|
|
config MLXSW_PCI
|
|
tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
|
|
depends on PCI && HAS_DMA && HAS_IOMEM && MLXSW_CORE
|
|
default m
|
|
---help---
|
|
This is PCI bus implementation for Mellanox Technologies Switch ASICs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxsw_pci.
|
|
|
|
config MLXSW_I2C
|
|
tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
|
|
depends on I2C && MLXSW_CORE
|
|
default m
|
|
---help---
|
|
This is I2C bus implementation for Mellanox Technologies Switch ASICs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxsw_i2c.
|
|
|
|
config MLXSW_SWITCHIB
|
|
tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support"
|
|
depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
|
|
default m
|
|
---help---
|
|
This driver supports Mellanox Technologies SwitchIB and SwitchIB-2
|
|
Infiniband Switch ASICs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxsw_switchib.
|
|
|
|
config MLXSW_SWITCHX2
|
|
tristate "Mellanox Technologies SwitchX-2 support"
|
|
depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
|
|
default m
|
|
---help---
|
|
This driver supports Mellanox Technologies SwitchX-2 Ethernet
|
|
Switch ASICs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxsw_switchx2.
|
|
|
|
config MLXSW_SPECTRUM
|
|
tristate "Mellanox Technologies Spectrum support"
|
|
depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
|
|
depends on PSAMPLE || PSAMPLE=n
|
|
depends on BRIDGE || BRIDGE=n
|
|
select PARMAN
|
|
select MLXFW
|
|
default m
|
|
---help---
|
|
This driver supports Mellanox Technologies Spectrum Ethernet
|
|
Switch ASICs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxsw_spectrum.
|
|
|
|
config MLXSW_SPECTRUM_DCB
|
|
bool "Data Center Bridging (DCB) support"
|
|
depends on MLXSW_SPECTRUM && DCB
|
|
default y
|
|
---help---
|
|
Say Y here if you want to use Data Center Bridging (DCB) in the
|
|
driver.
|
|
|
|
config MLXSW_MINIMAL
|
|
tristate "Mellanox Technologies minimal I2C support"
|
|
depends on MLXSW_CORE && MLXSW_I2C
|
|
default m
|
|
---help---
|
|
This driver supports I2C access for Mellanox Technologies Switch
|
|
ASICs.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called mlxsw_minimal.
|