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