mlxsw: spectrum: Extend to support Spectrum-3 ASIC
Subsystems (3)
PATCH 1/1 mlxsw: spectrum: Extend to support Spectrum-3 ASIC
From: Jiri Pirko <[email protected]>
Extend existing driver for Spectrum and Spectrum-2 ASICs to support Spectrum-3 ASIC as well.
Signed-off-by Jiri Pirko <[email protected]>
Reviewed-by Petr Machata <[email protected]>
Signed-off-by Ido Schimmel <[email protected]>
--- drivers/net/ethernet/mellanox/mlxsw/Kconfig | 6 +- drivers/net/ethernet/mellanox/mlxsw/pci.h | 1 + .../net/ethernet/mellanox/mlxsw/spectrum.c | 55 +++++++++++++++++++ 3 files changed, 59 insertions(+), 3 deletions(-)
drivers/net/ethernet/mellanox/mlxsw/Kconfig +3 -3
@@ -71,7 +71,7 @@ config MLXSW_SWITCHX2 module will be called mlxsw_switchx2. config MLXSW_SPECTRUM - tristate "Mellanox Technologies Spectrum support" + tristate "Mellanox Technologies Spectrum family support" depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q depends on PSAMPLE || PSAMPLE=n depends on BRIDGE || BRIDGE=n
@@ -87,8 +87,8 @@ config MLXSW_SPECTRUM select NET_PTP_CLASSIFY if PTP_1588_CLOCK default m ---help--- - This driver supports Mellanox Technologies Spectrum Ethernet - Switch ASICs. + This driver supports Mellanox Technologies + Spectrum/Spectrum-2/Spectrum-3 Ethernet Switch ASICs. To compile this driver as a module, choose M here: the module will be called mlxsw_spectrum.
drivers/net/ethernet/mellanox/mlxsw/pci.h +1 -0
@@ -9,6 +9,7 @@#define PCI_DEVICE_ID_MELLANOX_SWITCHX2 0xc738#define PCI_DEVICE_ID_MELLANOX_SPECTRUM 0xcb84#define PCI_DEVICE_ID_MELLANOX_SPECTRUM2 0xcf6c +#define PCI_DEVICE_ID_MELLANOX_SPECTRUM3 0xcf70#define PCI_DEVICE_ID_MELLANOX_SWITCHIB 0xcb20#define PCI_DEVICE_ID_MELLANOX_SWITCHIB2 0xcf08
drivers/net/ethernet/mellanox/mlxsw/spectrum.c +55 -0
102 lines not on this page · raw message
Signature · 1 line
2.21.0
From: Ido Schimmel <[email protected]>
Date: Wed, 7 Aug 2019 13:42:31 +0300
Quoted 8 lines
From: Jiri Pirko <[email protected]>
Extend existing driver for Spectrum and Spectrum-2 ASICs to support Spectrum-3 ASIC as well.
Signed-off-by Jiri Pirko <[email protected]>Reviewed-by Petr Machata <[email protected]>Signed-off-by Ido Schimmel <[email protected]>
Applied.