xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision 1d20d23c59c93a8b381063ef9785564018ad4c3a)
1#
2# Mellanox switch drivers configuration
3#
4
5config MLXSW_CORE
6	tristate "Mellanox Technologies Switch ASICs support"
7	depends on MAY_USE_DEVLINK
8	---help---
9	  This driver supports Mellanox Technologies Switch ASICs family.
10
11	  To compile this driver as a module, choose M here: the
12	  module will be called mlxsw_core.
13
14config MLXSW_CORE_HWMON
15	bool "HWMON support for Mellanox Technologies Switch ASICs"
16	depends on MLXSW_CORE && HWMON
17	depends on !(MLXSW_CORE=y && HWMON=m)
18	default y
19	---help---
20	  Say Y here if you want to expose HWMON interface on mlxsw devices.
21
22config MLXSW_PCI
23	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
24	depends on PCI && HAS_DMA && HAS_IOMEM && MLXSW_CORE
25	default m
26	---help---
27	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
28
29	  To compile this driver as a module, choose M here: the
30	  module will be called mlxsw_pci.
31
32config MLXSW_SWITCHX2
33	tristate "Mellanox Technologies SwitchX-2 support"
34	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
35	default m
36	---help---
37	  This driver supports Mellanox Technologies SwitchX-2 Ethernet
38	  Switch ASICs.
39
40	  To compile this driver as a module, choose M here: the
41	  module will be called mlxsw_switchx2.
42
43config MLXSW_SPECTRUM
44	tristate "Mellanox Technologies Spectrum support"
45	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
46	default m
47	---help---
48	  This driver supports Mellanox Technologies Spectrum Ethernet
49	  Switch ASICs.
50
51	  To compile this driver as a module, choose M here: the
52	  module will be called mlxsw_spectrum.
53
54config MLXSW_SPECTRUM_DCB
55	bool "Data Center Bridging (DCB) support"
56	depends on MLXSW_SPECTRUM && DCB
57	default y
58	---help---
59	  Say Y here if you want to use Data Center Bridging (DCB) in the
60	  driver.
61