mbox series

[net-next,00/10] mlxsw: Spectrum-4 preparations

Message ID 20211201081240.3767366-1-idosch@idosch.org (mailing list archive)
Headers show
Series mlxsw: Spectrum-4 preparations | expand

Message

Ido Schimmel Dec. 1, 2021, 8:12 a.m. UTC
From: Ido Schimmel <idosch@nvidia.com>

The Spectrum-4 ASIC will support more than 256 ports, unlike existing
ASICs. As such, various device registers were extended with two
additional bits to encode a 10 bit local port. In some cases, new
(Version 2) registers were introduced.

This patchset prepares mlxsw for Spectrum-4 support by encoding local
port in a 'u16' instead of a 'u8' and by extending the definitions of
the various registers to support the extended local port form.

Amit Cohen (10):
  mlxsw: spectrum: Bump minimum FW version to xx.2010.1006
  mlxsw: reg: Remove unused functions
  mlxsw: item: Add support for local_port field in a split form
  mlxsw: reg: Align existing registers to use extended local_port field
  mlxsw: reg: Increase 'port_num' field in PMTDB register
  mlxsw: reg: Adjust PPCNT register to support local port 255
  mlxsw: Use u16 for local_port field instead of u8
  mlxsw: Add support for more than 256 ports in SBSR register
  mlxsw: Use Switch Flooding Table Register Version 2
  mlxsw: Use Switch Multicast ID Register Version 2

 drivers/net/ethernet/mellanox/mlxsw/core.c    |  42 +-
 drivers/net/ethernet/mellanox/mlxsw/core.h    |  44 +-
 .../mellanox/mlxsw/core_acl_flex_actions.c    |  22 +-
 .../mellanox/mlxsw/core_acl_flex_actions.h    |  16 +-
 drivers/net/ethernet/mellanox/mlxsw/item.h    |  36 ++
 drivers/net/ethernet/mellanox/mlxsw/minimal.c |  10 +-
 drivers/net/ethernet/mellanox/mlxsw/reg.h     | 487 +++++++++---------
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  60 +--
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |  20 +-
 .../ethernet/mellanox/mlxsw/spectrum_acl.c    |   2 +-
 .../mlxsw/spectrum_acl_flex_actions.c         |  14 +-
 .../mellanox/mlxsw/spectrum_buffers.c         |  58 ++-
 .../mellanox/mlxsw/spectrum_ethtool.c         |   4 +-
 .../ethernet/mellanox/mlxsw/spectrum_fid.c    |  30 +-
 .../ethernet/mellanox/mlxsw/spectrum_ptp.c    |  12 +-
 .../ethernet/mellanox/mlxsw/spectrum_ptp.h    |  16 +-
 .../ethernet/mellanox/mlxsw/spectrum_router.c |   2 +-
 .../ethernet/mellanox/mlxsw/spectrum_span.c   |  20 +-
 .../mellanox/mlxsw/spectrum_switchdev.c       |  60 +--
 .../ethernet/mellanox/mlxsw/spectrum_trap.c   |  24 +-
 20 files changed, 515 insertions(+), 464 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Dec. 1, 2021, 3 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed,  1 Dec 2021 10:12:30 +0200 you wrote:
> From: Ido Schimmel <idosch@nvidia.com>
> 
> The Spectrum-4 ASIC will support more than 256 ports, unlike existing
> ASICs. As such, various device registers were extended with two
> additional bits to encode a 10 bit local port. In some cases, new
> (Version 2) registers were introduced.
> 
> [...]

Here is the summary with links:
  - [net-next,01/10] mlxsw: spectrum: Bump minimum FW version to xx.2010.1006
    https://git.kernel.org/netdev/net-next/c/2cb310dc4402
  - [net-next,02/10] mlxsw: reg: Remove unused functions
    https://git.kernel.org/netdev/net-next/c/b25dea489b55
  - [net-next,03/10] mlxsw: item: Add support for local_port field in a split form
    https://git.kernel.org/netdev/net-next/c/fda39347d90f
  - [net-next,04/10] mlxsw: reg: Align existing registers to use extended local_port field
    https://git.kernel.org/netdev/net-next/c/fd24b29a1b74
  - [net-next,05/10] mlxsw: reg: Increase 'port_num' field in PMTDB register
    https://git.kernel.org/netdev/net-next/c/da56f1a0d2a5
  - [net-next,06/10] mlxsw: reg: Adjust PPCNT register to support local port 255
    https://git.kernel.org/netdev/net-next/c/242e696e035f
  - [net-next,07/10] mlxsw: Use u16 for local_port field instead of u8
    https://git.kernel.org/netdev/net-next/c/c934757d9000
  - [net-next,08/10] mlxsw: Add support for more than 256 ports in SBSR register
    https://git.kernel.org/netdev/net-next/c/f8538aec88b4
  - [net-next,09/10] mlxsw: Use Switch Flooding Table Register Version 2
    https://git.kernel.org/netdev/net-next/c/e86ad8ce5bed
  - [net-next,10/10] mlxsw: Use Switch Multicast ID Register Version 2
    https://git.kernel.org/netdev/net-next/c/51ef6b00798c

You are awesome, thank you!