xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision 1d20d23c59c93a8b381063ef9785564018ad4c3a)
193c1edb2SJiri Pirko#
293c1edb2SJiri Pirko# Mellanox switch drivers configuration
393c1edb2SJiri Pirko#
493c1edb2SJiri Pirko
593c1edb2SJiri Pirkoconfig MLXSW_CORE
693c1edb2SJiri Pirko	tristate "Mellanox Technologies Switch ASICs support"
73d1cbe83SArnd Bergmann	depends on MAY_USE_DEVLINK
893c1edb2SJiri Pirko	---help---
993c1edb2SJiri Pirko	  This driver supports Mellanox Technologies Switch ASICs family.
1093c1edb2SJiri Pirko
1193c1edb2SJiri Pirko	  To compile this driver as a module, choose M here: the
1293c1edb2SJiri Pirko	  module will be called mlxsw_core.
13eda6500aSJiri Pirko
1489309da3SJiri Pirkoconfig MLXSW_CORE_HWMON
1589309da3SJiri Pirko	bool "HWMON support for Mellanox Technologies Switch ASICs"
1689309da3SJiri Pirko	depends on MLXSW_CORE && HWMON
1789309da3SJiri Pirko	depends on !(MLXSW_CORE=y && HWMON=m)
1889309da3SJiri Pirko	default y
1989309da3SJiri Pirko	---help---
2089309da3SJiri Pirko	  Say Y here if you want to expose HWMON interface on mlxsw devices.
2189309da3SJiri Pirko
22eda6500aSJiri Pirkoconfig MLXSW_PCI
23eda6500aSJiri Pirko	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
2474ed207eSJiri Pirko	depends on PCI && HAS_DMA && HAS_IOMEM && MLXSW_CORE
25eda6500aSJiri Pirko	default m
26eda6500aSJiri Pirko	---help---
27eda6500aSJiri Pirko	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
28eda6500aSJiri Pirko
29eda6500aSJiri Pirko	  To compile this driver as a module, choose M here: the
30eda6500aSJiri Pirko	  module will be called mlxsw_pci.
3131557f0fSJiri Pirko
3231557f0fSJiri Pirkoconfig MLXSW_SWITCHX2
3331557f0fSJiri Pirko	tristate "Mellanox Technologies SwitchX-2 support"
34*1d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
3531557f0fSJiri Pirko	default m
3631557f0fSJiri Pirko	---help---
3731557f0fSJiri Pirko	  This driver supports Mellanox Technologies SwitchX-2 Ethernet
3831557f0fSJiri Pirko	  Switch ASICs.
3931557f0fSJiri Pirko
4031557f0fSJiri Pirko	  To compile this driver as a module, choose M here: the
4131557f0fSJiri Pirko	  module will be called mlxsw_switchx2.
4256ade8feSJiri Pirko
4356ade8feSJiri Pirkoconfig MLXSW_SPECTRUM
4456ade8feSJiri Pirko	tristate "Mellanox Technologies Spectrum support"
45*1d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
4656ade8feSJiri Pirko	default m
4756ade8feSJiri Pirko	---help---
4856ade8feSJiri Pirko	  This driver supports Mellanox Technologies Spectrum Ethernet
4956ade8feSJiri Pirko	  Switch ASICs.
5056ade8feSJiri Pirko
5156ade8feSJiri Pirko	  To compile this driver as a module, choose M here: the
5256ade8feSJiri Pirko	  module will be called mlxsw_spectrum.
53f00817dfSIdo Schimmel
54f00817dfSIdo Schimmelconfig MLXSW_SPECTRUM_DCB
55f00817dfSIdo Schimmel	bool "Data Center Bridging (DCB) support"
56f00817dfSIdo Schimmel	depends on MLXSW_SPECTRUM && DCB
57f00817dfSIdo Schimmel	default y
58f00817dfSIdo Schimmel	---help---
59f00817dfSIdo Schimmel	  Say Y here if you want to use Data Center Bridging (DCB) in the
60f00817dfSIdo Schimmel	  driver.
61