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: <20191031094221.17526-1-idosch@idosch.org>
Date:   Thu, 31 Oct 2019 11:42:05 +0200
From:   Ido Schimmel <idosch@...sch.org>
To:     netdev@...r.kernel.org
Cc:     davem@...emloft.net, jiri@...lanox.com, mlxsw@...lanox.com,
        Ido Schimmel <idosch@...lanox.com>
Subject: [PATCH net-next 00/16] mlxsw: Make port split code more generic

From: Ido Schimmel <idosch@...lanox.com>

Jiri says:

Currently, we assume some limitations and constant values which are not
applicable for Spectrum-3 which has 8 lanes ports (instead of previous 4
lanes).

This patch does 2 things:

1) Generalizes the code to not use constants so it can work for 4, 8 and
   possibly 16 lanes.

2) Enforces some assumptions we had in the code but did not check.

Jiri Pirko (16):
  mlxsw: reg: Extend PMLP tx/rx lane value size to 4 bits
  mlxsw: reg: Add Port Module Type Mapping Register
  mlxsw: spectrum: Use PMTM register to get max module width
  mlxsw: spectrum: Move max_width check up before count check
  mlxsw: spectrum: Distinguish between unsplittable and split port
  mlxsw: spectrum: Replace port_to_module array with array of structs
  mlxsw: spectrum: Use mapping of port being split for creating split
    ports
  mlxsw: spectrum: Pass mapping values in port mapping structure
  mlxsw: spectrum: Add sanity checks into module info get
  mlxsw: spectrum: Push getting offsets of split ports into a helper
  mlxsw: spectrum: Introduce resource for getting offset of 4 lanes
    split port
  mlxsw: spectrum: Remember split base local port and use it in unsplit
  mlxsw: spectrum: Use port_module_max_width to compute base port index
  mlxsw: spectrum: Fix base port get for split count 4 and 8
  mlxsw: spectrum: Iterate over all ports in gap during unsplit create
  mlxsw: spectrum: Generalize split count check

 drivers/net/ethernet/mellanox/mlxsw/core.c    |  29 ++
 drivers/net/ethernet/mellanox/mlxsw/core.h    |   1 +
 drivers/net/ethernet/mellanox/mlxsw/port.h    |   2 -
 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  55 ++-
 .../net/ethernet/mellanox/mlxsw/resources.h   |   2 +
 .../net/ethernet/mellanox/mlxsw/spectrum.c    | 345 ++++++++++++------
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |  21 +-
 7 files changed, 325 insertions(+), 130 deletions(-)

-- 
2.21.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ