Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0-only
#
# Mellanox switch drivers configuration
#

config CONFIG_MLXSW_CORE
	tristate "Mellanox Technologies Switch ASICs support"
	select CONFIG_NET_DEVLINK
	---help---
	  This driver supports Mellanox Technologies Switch ASICs family.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called mlxsw_core.

config CONFIG_MLXSW_CORE_HWMON
	bool "HWMON support for Mellanox Technologies Switch ASICs"
	depends on CONFIG_MLXSW_CORE && CONFIG_HWMON
	depends on !(CONFIG_MLXSW_CORE=y && CONFIG_HWMON=m)
	default y
	---help---
	  Say Y here if you want to expose CONFIG_HWMON interface on mlxsw devices.

config CONFIG_MLXSW_CORE_THERMAL
	bool "Thermal zone support for Mellanox Technologies Switch ASICs"
	depends on CONFIG_MLXSW_CORE && CONFIG_THERMAL
	default y
	---help---
	 Say Y here if you want to automatically control fans speed according
	 ambient temperature reported by ASIC.

config CONFIG_MLXSW_PCI
	tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
	depends on CONFIG_PCI && CONFIG_HAS_IOMEM && CONFIG_MLXSW_CORE
	default m
	---help---
	  This is CONFIG_PCI bus implementation for Mellanox Technologies Switch ASICs.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called mlxsw_pci.

config CONFIG_MLXSW_I2C
	tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
	depends on CONFIG_I2C && CONFIG_MLXSW_CORE
	default m
	---help---
	  This is CONFIG_I2C bus implementation for Mellanox Technologies Switch ASICs.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called mlxsw_i2c.

config CONFIG_MLXSW_SWITCHIB
	tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support"
	depends on CONFIG_MLXSW_CORE && CONFIG_MLXSW_PCI && CONFIG_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 CONFIG_M here: the
	  module will be called mlxsw_switchib.

config CONFIG_MLXSW_SWITCHX2
	tristate "Mellanox Technologies SwitchX-2 support"
	depends on CONFIG_MLXSW_CORE && CONFIG_MLXSW_PCI && CONFIG_NET_SWITCHDEV
	default m
	---help---
	  This driver supports Mellanox Technologies SwitchX-2 Ethernet
	  Switch ASICs.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called mlxsw_switchx2.

config CONFIG_MLXSW_SPECTRUM
	tristate "Mellanox Technologies Spectrum family support"
	depends on CONFIG_MLXSW_CORE && CONFIG_MLXSW_PCI && CONFIG_NET_SWITCHDEV && CONFIG_VLAN_8021Q
	depends on CONFIG_PSAMPLE || CONFIG_PSAMPLE=n
	depends on CONFIG_BRIDGE || CONFIG_BRIDGE=n
	depends on CONFIG_IPV6 || CONFIG_IPV6=n
	depends on CONFIG_NET_IPGRE || CONFIG_NET_IPGRE=n
	depends on CONFIG_IPV6_GRE || CONFIG_IPV6_GRE=n
	depends on CONFIG_VXLAN || CONFIG_VXLAN=n
	select CONFIG_GENERIC_ALLOCATOR
	select CONFIG_PARMAN
	select CONFIG_OBJAGG
	select CONFIG_MLXFW
	imply CONFIG_PTP_1588_CLOCK
	select CONFIG_NET_PTP_CLASSIFY if CONFIG_PTP_1588_CLOCK
	default m
	---help---
	  This driver supports Mellanox Technologies
	  Spectrum/Spectrum-2/Spectrum-3 Ethernet Switch ASICs.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called mlxsw_spectrum.

config CONFIG_MLXSW_SPECTRUM_DCB
	bool "Data Center Bridging (DCB) support"
	depends on CONFIG_MLXSW_SPECTRUM && CONFIG_DCB
	default y
	---help---
	  Say Y here if you want to use Data Center Bridging (CONFIG_DCB) in the
	  driver.

config CONFIG_MLXSW_MINIMAL
	tristate "Mellanox Technologies minimal I2C support"
	depends on CONFIG_MLXSW_CORE && CONFIG_MLXSW_I2C
	default m
	---help---
	  This driver supports CONFIG_I2C access for Mellanox Technologies Switch
	  ASICs.

	  To compile this driver as a module, choose CONFIG_M here: the
	  module will be called mlxsw_minimal.