lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211201081240.3767366-1-idosch@idosch.org>
Date:   Wed,  1 Dec 2021 10:12:30 +0200
From:   Ido Schimmel <idosch@...sch.org>
To:     netdev@...r.kernel.org
Cc:     davem@...emloft.net, kuba@...nel.org, jiri@...dia.com,
        amcohen@...dia.com, mlxsw@...dia.com,
        Ido Schimmel <idosch@...dia.com>
Subject: [PATCH net-next 00/10] mlxsw: Spectrum-4 preparations

From: Ido Schimmel <idosch@...dia.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(-)

-- 
2.31.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ