diff options
author | Slava Shwartsman <slavash@mellanox.com> | 2017-11-10 08:10:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-13 02:27:51 +0100 |
commit | a1b8714593b67d0f783a9d82ed7e5800d02776bb (patch) | |
tree | c285e69939c05d89fca396f77d97da8420782297 /drivers/net/ethernet/mellanox/mlx4/Kconfig | |
parent | af_netlink: ensure that NLMSG_DONE never fails in dumps (diff) | |
download | linux-a1b8714593b67d0f783a9d82ed7e5800d02776bb.tar.xz linux-a1b8714593b67d0f783a9d82ed7e5800d02776bb.zip |
net/mlx4: Use Kconfig flag to remove support of old gen2 Mellanox devices
Since Mellanox focus is on newer adapters, we would like to have the
ability to disable the support for old gen2 adapters.
This can be done by turning off the MLX4_CORE_GEN2 Kconfig flag.
We keep it turned on by default.
Signed-off-by: Slava Shwartsman <slavash@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/Kconfig')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/Kconfig b/drivers/net/ethernet/mellanox/mlx4/Kconfig index 22b1cc012bc9..36054e6fb9d3 100644 --- a/drivers/net/ethernet/mellanox/mlx4/Kconfig +++ b/drivers/net/ethernet/mellanox/mlx4/Kconfig @@ -38,3 +38,11 @@ config MLX4_DEBUG mlx4_core driver. The output can be turned on via the debug_level module parameter (which can also be set after the driver is loaded through sysfs). + +config MLX4_CORE_GEN2 + bool "Support for old gen2 Mellanox PCI IDs" if (MLX4_CORE) + depends on MLX4_CORE + default y + ---help--- + Say Y here if you want to use old gen2 Mellanox devices in the + driver. |