net/mlx4: Use Kconfig flag to remove support of old gen2 Mellanox devices
authorSlava Shwartsman <slavash@mellanox.com>
Fri, 10 Nov 2017 07:10:29 +0000 (09:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Nov 2017 01:27:51 +0000 (10:27 +0900)
commita1b8714593b67d0f783a9d82ed7e5800d02776bb
treec285e69939c05d89fca396f77d97da8420782297
parent0642840b8bb008528dbdf929cec9f65ac4231ad0
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>
drivers/net/ethernet/mellanox/mlx4/Kconfig
drivers/net/ethernet/mellanox/mlx4/main.c