162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Mellanox driver configuration
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciconfig MLX4_EN
762306a36Sopenharmony_ci	tristate "Mellanox Technologies 1/10/40Gbit Ethernet support"
862306a36Sopenharmony_ci	depends on PCI && NETDEVICES && ETHERNET && INET
962306a36Sopenharmony_ci	depends on PTP_1588_CLOCK_OPTIONAL
1062306a36Sopenharmony_ci	select MLX4_CORE
1162306a36Sopenharmony_ci	help
1262306a36Sopenharmony_ci	  This driver supports Mellanox Technologies ConnectX Ethernet
1362306a36Sopenharmony_ci	  devices.
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciconfig MLX4_EN_DCB
1662306a36Sopenharmony_ci	bool "Data Center Bridging (DCB) Support"
1762306a36Sopenharmony_ci	default y
1862306a36Sopenharmony_ci	depends on MLX4_EN && DCB
1962306a36Sopenharmony_ci	help
2062306a36Sopenharmony_ci	  Say Y here if you want to use Data Center Bridging (DCB) in the
2162306a36Sopenharmony_ci	  driver.
2262306a36Sopenharmony_ci	  If set to N, will not be able to configure QoS and ratelimit attributes.
2362306a36Sopenharmony_ci	  This flag is depended on the kernel's DCB support.
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci	  If unsure, set to Y
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciconfig MLX4_CORE
2862306a36Sopenharmony_ci	tristate
2962306a36Sopenharmony_ci	depends on PCI
3062306a36Sopenharmony_ci	select AUXILIARY_BUS
3162306a36Sopenharmony_ci	select NET_DEVLINK
3262306a36Sopenharmony_ci	default n
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ciconfig MLX4_DEBUG
3562306a36Sopenharmony_ci	bool "Verbose debugging output" if (MLX4_CORE && EXPERT)
3662306a36Sopenharmony_ci	depends on MLX4_CORE
3762306a36Sopenharmony_ci	default y
3862306a36Sopenharmony_ci	help
3962306a36Sopenharmony_ci	  This option causes debugging code to be compiled into the
4062306a36Sopenharmony_ci	  mlx4_core driver.  The output can be turned on via the
4162306a36Sopenharmony_ci	  debug_level module parameter (which can also be set after
4262306a36Sopenharmony_ci	  the driver is loaded through sysfs).
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciconfig MLX4_CORE_GEN2
4562306a36Sopenharmony_ci	bool "Support for old gen2 Mellanox PCI IDs" if (MLX4_CORE)
4662306a36Sopenharmony_ci	depends on MLX4_CORE
4762306a36Sopenharmony_ci	default y
4862306a36Sopenharmony_ci	help
4962306a36Sopenharmony_ci	  Say Y here if you want to use old gen2 Mellanox devices in the
5062306a36Sopenharmony_ci	  driver.
51