xref: /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/Kconfig (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# Mellanox driver configuration
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun
6*4882a593Smuzhiyunconfig MLX4_EN
7*4882a593Smuzhiyun	tristate "Mellanox Technologies 1/10/40Gbit Ethernet support"
8*4882a593Smuzhiyun	depends on PCI && NETDEVICES && ETHERNET && INET
9*4882a593Smuzhiyun	select MLX4_CORE
10*4882a593Smuzhiyun	imply PTP_1588_CLOCK
11*4882a593Smuzhiyun	help
12*4882a593Smuzhiyun	  This driver supports Mellanox Technologies ConnectX Ethernet
13*4882a593Smuzhiyun	  devices.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunconfig MLX4_EN_DCB
16*4882a593Smuzhiyun	bool "Data Center Bridging (DCB) Support"
17*4882a593Smuzhiyun	default y
18*4882a593Smuzhiyun	depends on MLX4_EN && DCB
19*4882a593Smuzhiyun	help
20*4882a593Smuzhiyun	  Say Y here if you want to use Data Center Bridging (DCB) in the
21*4882a593Smuzhiyun	  driver.
22*4882a593Smuzhiyun	  If set to N, will not be able to configure QoS and ratelimit attributes.
23*4882a593Smuzhiyun	  This flag is depended on the kernel's DCB support.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun	  If unsure, set to Y
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunconfig MLX4_CORE
28*4882a593Smuzhiyun	tristate
29*4882a593Smuzhiyun	depends on PCI
30*4882a593Smuzhiyun	select NET_DEVLINK
31*4882a593Smuzhiyun	default n
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunconfig MLX4_DEBUG
34*4882a593Smuzhiyun	bool "Verbose debugging output" if (MLX4_CORE && EXPERT)
35*4882a593Smuzhiyun	depends on MLX4_CORE
36*4882a593Smuzhiyun	default y
37*4882a593Smuzhiyun	help
38*4882a593Smuzhiyun	  This option causes debugging code to be compiled into the
39*4882a593Smuzhiyun	  mlx4_core driver.  The output can be turned on via the
40*4882a593Smuzhiyun	  debug_level module parameter (which can also be set after
41*4882a593Smuzhiyun	  the driver is loaded through sysfs).
42*4882a593Smuzhiyun
43*4882a593Smuzhiyunconfig MLX4_CORE_GEN2
44*4882a593Smuzhiyun	bool "Support for old gen2 Mellanox PCI IDs" if (MLX4_CORE)
45*4882a593Smuzhiyun	depends on MLX4_CORE
46*4882a593Smuzhiyun	default y
47*4882a593Smuzhiyun	help
48*4882a593Smuzhiyun	  Say Y here if you want to use old gen2 Mellanox devices in the
49*4882a593Smuzhiyun	  driver.
50