xref: /linux/drivers/net/ethernet/mellanox/mlxsw/Kconfig (revision fb738b99ef229bd3d25f1b3e5503925dba9b1a7c)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
293c1edb2SJiri Pirko#
393c1edb2SJiri Pirko# Mellanox switch drivers configuration
493c1edb2SJiri Pirko#
593c1edb2SJiri Pirko
693c1edb2SJiri Pirkoconfig MLXSW_CORE
793c1edb2SJiri Pirko	tristate "Mellanox Technologies Switch ASICs support"
8f6b19b35SJiri Pirko	select NET_DEVLINK
9*fb738b99SIdo Schimmel	select MLXFW
10a7f7f624SMasahiro Yamada	help
1193c1edb2SJiri Pirko	  This driver supports Mellanox Technologies Switch ASICs family.
1293c1edb2SJiri Pirko
1393c1edb2SJiri Pirko	  To compile this driver as a module, choose M here: the
1493c1edb2SJiri Pirko	  module will be called mlxsw_core.
15eda6500aSJiri Pirko
1689309da3SJiri Pirkoconfig MLXSW_CORE_HWMON
1789309da3SJiri Pirko	bool "HWMON support for Mellanox Technologies Switch ASICs"
1889309da3SJiri Pirko	depends on MLXSW_CORE && HWMON
1989309da3SJiri Pirko	depends on !(MLXSW_CORE=y && HWMON=m)
2089309da3SJiri Pirko	default y
21a7f7f624SMasahiro Yamada	help
2289309da3SJiri Pirko	  Say Y here if you want to expose HWMON interface on mlxsw devices.
2389309da3SJiri Pirko
24a50c1e35SIvan Veceraconfig MLXSW_CORE_THERMAL
25a50c1e35SIvan Vecera	bool "Thermal zone support for Mellanox Technologies Switch ASICs"
26a50c1e35SIvan Vecera	depends on MLXSW_CORE && THERMAL
27a50c1e35SIvan Vecera	default y
28a7f7f624SMasahiro Yamada	help
29a50c1e35SIvan Vecera	 Say Y here if you want to automatically control fans speed according
30a50c1e35SIvan Vecera	 ambient temperature reported by ASIC.
31a50c1e35SIvan Vecera
32eda6500aSJiri Pirkoconfig MLXSW_PCI
33eda6500aSJiri Pirko	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
34e020797bSGeert Uytterhoeven	depends on PCI && HAS_IOMEM && MLXSW_CORE
35eda6500aSJiri Pirko	default m
36a7f7f624SMasahiro Yamada	help
37eda6500aSJiri Pirko	  This is PCI bus implementation for Mellanox Technologies Switch ASICs.
38eda6500aSJiri Pirko
39eda6500aSJiri Pirko	  To compile this driver as a module, choose M here: the
40eda6500aSJiri Pirko	  module will be called mlxsw_pci.
4131557f0fSJiri Pirko
426882b0aeSVadim Pasternakconfig MLXSW_I2C
436882b0aeSVadim Pasternak	tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
446882b0aeSVadim Pasternak	depends on I2C && MLXSW_CORE
456882b0aeSVadim Pasternak	default m
46a7f7f624SMasahiro Yamada	help
476882b0aeSVadim Pasternak	  This is I2C bus implementation for Mellanox Technologies Switch ASICs.
486882b0aeSVadim Pasternak
496882b0aeSVadim Pasternak	  To compile this driver as a module, choose M here: the
506882b0aeSVadim Pasternak	  module will be called mlxsw_i2c.
516882b0aeSVadim Pasternak
52d1ba5263SElad Razconfig MLXSW_SWITCHIB
53d1ba5263SElad Raz	tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support"
5467ea7ef1SArnd Bergmann	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
55d1ba5263SElad Raz	default m
56a7f7f624SMasahiro Yamada	help
57d1ba5263SElad Raz	  This driver supports Mellanox Technologies SwitchIB and SwitchIB-2
58d1ba5263SElad Raz	  Infiniband Switch ASICs.
59d1ba5263SElad Raz
60d1ba5263SElad Raz	  To compile this driver as a module, choose M here: the
61d1ba5263SElad Raz	  module will be called mlxsw_switchib.
62d1ba5263SElad Raz
6331557f0fSJiri Pirkoconfig MLXSW_SWITCHX2
6431557f0fSJiri Pirko	tristate "Mellanox Technologies SwitchX-2 support"
651d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
6631557f0fSJiri Pirko	default m
67a7f7f624SMasahiro Yamada	help
6831557f0fSJiri Pirko	  This driver supports Mellanox Technologies SwitchX-2 Ethernet
6931557f0fSJiri Pirko	  Switch ASICs.
7031557f0fSJiri Pirko
7131557f0fSJiri Pirko	  To compile this driver as a module, choose M here: the
7231557f0fSJiri Pirko	  module will be called mlxsw_switchx2.
7356ade8feSJiri Pirko
7456ade8feSJiri Pirkoconfig MLXSW_SPECTRUM
75da382875SJiri Pirko	tristate "Mellanox Technologies Spectrum family support"
761d20d23cSJiri Pirko	depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
778d1fb01dSArnd Bergmann	depends on PSAMPLE || PSAMPLE=n
780266f797SIdo Schimmel	depends on BRIDGE || BRIDGE=n
79428b851fSIdo Schimmel	depends on IPV6 || IPV6=n
8099db5229SPetr Machata	depends on NET_IPGRE || NET_IPGRE=n
8199db5229SPetr Machata	depends on IPV6_GRE || IPV6_GRE=n
82143a8e03SIdo Schimmel	depends on VXLAN || VXLAN=n
83f465261aSIdo Schimmel	select GENERIC_ALLOCATOR
8422a67766SJiri Pirko	select PARMAN
85c71abd7dSJiri Pirko	select OBJAGG
86992aa864SShalom Toledo	imply PTP_1588_CLOCK
87d92e4e6eSPetr Machata	select NET_PTP_CLASSIFY if PTP_1588_CLOCK
8856ade8feSJiri Pirko	default m
89a7f7f624SMasahiro Yamada	help
90da382875SJiri Pirko	  This driver supports Mellanox Technologies
91da382875SJiri Pirko	  Spectrum/Spectrum-2/Spectrum-3 Ethernet Switch ASICs.
9256ade8feSJiri Pirko
9356ade8feSJiri Pirko	  To compile this driver as a module, choose M here: the
9456ade8feSJiri Pirko	  module will be called mlxsw_spectrum.
95f00817dfSIdo Schimmel
96f00817dfSIdo Schimmelconfig MLXSW_SPECTRUM_DCB
97f00817dfSIdo Schimmel	bool "Data Center Bridging (DCB) support"
98f00817dfSIdo Schimmel	depends on MLXSW_SPECTRUM && DCB
99f00817dfSIdo Schimmel	default y
100a7f7f624SMasahiro Yamada	help
101f00817dfSIdo Schimmel	  Say Y here if you want to use Data Center Bridging (DCB) in the
102f00817dfSIdo Schimmel	  driver.
103d556e929SVadim Pasternak
104d556e929SVadim Pasternakconfig MLXSW_MINIMAL
105d556e929SVadim Pasternak	tristate "Mellanox Technologies minimal I2C support"
106d556e929SVadim Pasternak	depends on MLXSW_CORE && MLXSW_I2C
107d556e929SVadim Pasternak	default m
108a7f7f624SMasahiro Yamada	help
109d556e929SVadim Pasternak	  This driver supports I2C access for Mellanox Technologies Switch
110d556e929SVadim Pasternak	  ASICs.
111d556e929SVadim Pasternak
112d556e929SVadim Pasternak	  To compile this driver as a module, choose M here: the
113d556e929SVadim Pasternak	  module will be called mlxsw_minimal.
114