From: Ido Schimmel <ido...@mellanox.com> This patchset updates mlxsw to use a new firmware version and adds support for split into two ports on Spectrum-2 based systems.
Patch #1 updates the firmware version to 13.2000.1122 Patch #2 queries new resources from the firmware. Patch #3 makes use of these resources in order to support split into two ports on Spectrum-2 based systems. The need for these resources is explained by Shalom: When splitting a port, different local ports need to be mapped on different systems. For example: SN3700 (local_ports_in_2x=2): * Without split: front panel 1 --> local port 1 front panel 2 --> local port 5 * Split to 2: front panel 1s0 --> local port 1 front panel 1s1 --> local port 3 front panel 2 --> local port 5 SN3800 (local_ports_in_2x=1): * Without split: front panel 1 --> local port 1 front panel 2 --> local port 3 * Split to 2: front panel 1s0 --> local port 1 front panel 1s1 --> local port 2 front panel 2 --> local port 3 The local_ports_in_{1x, 2x} resources provide the offsets from the base local ports according to which the new local ports can be calculated. Ido Schimmel (1): mlxsw: Bump firmware version to 13.2000.1122 Shalom Toledo (2): mlxsw: resources: Add local_ports_in_{1x, 2x} mlxsw: spectrum: split base on local_ports_in_{1x, 2x} resources .../net/ethernet/mellanox/mlxsw/resources.h | 4 ++ .../net/ethernet/mellanox/mlxsw/spectrum.c | 50 ++++++++++++++----- 2 files changed, 41 insertions(+), 13 deletions(-) -- 2.20.1