Skip to content

Commit b0d80c0

Browse files
Amit Cohendavem330
authored andcommitted
mlxsw: Remove Mellanox SwitchX-2 ASIC support
Initial support for the Mellanox SwitchX-2 ASIC was added in July 2015. Since then all development efforts shifted towards the Mellanox Spectrum ASICs and development of this driver stopped beside trivial fixes and refactoring. Therefore, the driver does not support any switch offloads and simply traps all traffic to the CPU, rendering it irrelevant for deployment. In addition, support for this ASIC was dropped by Mellanox a few years ago. Given the driver is not used by any users and that there is no intention of investing in its development, remove it from the kernel. Signed-off-by: Amit Cohen <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 9b43fbb commit b0d80c0

File tree

6 files changed

+0
-1719
lines changed

6 files changed

+0
-1719
lines changed

drivers/net/ethernet/mellanox/mlxsw/Kconfig

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,6 @@ config MLXSW_I2C
4949
To compile this driver as a module, choose M here: the
5050
module will be called mlxsw_i2c.
5151

52-
config MLXSW_SWITCHX2
53-
tristate "Mellanox Technologies SwitchX-2 support"
54-
depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
55-
default m
56-
help
57-
This driver supports Mellanox Technologies SwitchX-2 Ethernet
58-
Switch ASICs.
59-
60-
To compile this driver as a module, choose M here: the
61-
module will be called mlxsw_switchx2.
62-
6352
config MLXSW_SPECTRUM
6453
tristate "Mellanox Technologies Spectrum family support"
6554
depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q

drivers/net/ethernet/mellanox/mlxsw/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ obj-$(CONFIG_MLXSW_PCI) += mlxsw_pci.o
88
mlxsw_pci-objs := pci.o
99
obj-$(CONFIG_MLXSW_I2C) += mlxsw_i2c.o
1010
mlxsw_i2c-objs := i2c.o
11-
obj-$(CONFIG_MLXSW_SWITCHX2) += mlxsw_switchx2.o
12-
mlxsw_switchx2-objs := switchx2.o
1311
obj-$(CONFIG_MLXSW_SPECTRUM) += mlxsw_spectrum.o
1412
mlxsw_spectrum-objs := spectrum.o spectrum_buffers.o \
1513
spectrum_switchdev.o spectrum_router.o \

drivers/net/ethernet/mellanox/mlxsw/ib.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

drivers/net/ethernet/mellanox/mlxsw/pci.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,11 +1426,6 @@ static int mlxsw_pci_sys_ready_wait(struct mlxsw_pci *mlxsw_pci,
14261426
unsigned long end;
14271427
u32 val;
14281428

1429-
if (id->device == PCI_DEVICE_ID_MELLANOX_SWITCHX2) {
1430-
msleep(MLXSW_PCI_SW_RESET_TIMEOUT_MSECS);
1431-
return 0;
1432-
}
1433-
14341429
/* We must wait for the HW to become responsive. */
14351430
msleep(MLXSW_PCI_SW_RESET_WAIT_MSECS);
14361431

drivers/net/ethernet/mellanox/mlxsw/pci.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include <linux/pci.h>
88

9-
#define PCI_DEVICE_ID_MELLANOX_SWITCHX2 0xc738
109
#define PCI_DEVICE_ID_MELLANOX_SPECTRUM 0xcb84
1110
#define PCI_DEVICE_ID_MELLANOX_SPECTRUM2 0xcf6c
1211
#define PCI_DEVICE_ID_MELLANOX_SPECTRUM3 0xcf70

0 commit comments

Comments
 (0)