All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 00/16] mlxsw: Make port split code more generic
@ 2019-10-31  9:42 Ido Schimmel
  2019-10-31  9:42 ` [PATCH net-next 01/16] mlxsw: reg: Extend PMLP tx/rx lane value size to 4 bits Ido Schimmel
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: Ido Schimmel @ 2019-10-31  9:42 UTC (permalink / raw)
  To: netdev; +Cc: davem, jiri, mlxsw, Ido Schimmel

From: Ido Schimmel <idosch@mellanox.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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-10-31 17:55 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-31  9:42 [PATCH net-next 00/16] mlxsw: Make port split code more generic Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 01/16] mlxsw: reg: Extend PMLP tx/rx lane value size to 4 bits Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 02/16] mlxsw: reg: Add Port Module Type Mapping Register Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 03/16] mlxsw: spectrum: Use PMTM register to get max module width Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 04/16] mlxsw: spectrum: Move max_width check up before count check Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 05/16] mlxsw: spectrum: Distinguish between unsplittable and split port Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 06/16] mlxsw: spectrum: Replace port_to_module array with array of structs Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 07/16] mlxsw: spectrum: Use mapping of port being split for creating split ports Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 08/16] mlxsw: spectrum: Pass mapping values in port mapping structure Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 09/16] mlxsw: spectrum: Add sanity checks into module info get Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 10/16] mlxsw: spectrum: Push getting offsets of split ports into a helper Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 11/16] mlxsw: spectrum: Introduce resource for getting offset of 4 lanes split port Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 12/16] mlxsw: spectrum: Remember split base local port and use it in unsplit Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 13/16] mlxsw: spectrum: Use port_module_max_width to compute base port index Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 14/16] mlxsw: spectrum: Fix base port get for split count 4 and 8 Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 15/16] mlxsw: spectrum: Iterate over all ports in gap during unsplit create Ido Schimmel
2019-10-31  9:42 ` [PATCH net-next 16/16] mlxsw: spectrum: Generalize split count check Ido Schimmel
2019-10-31 17:55 ` [PATCH net-next 00/16] mlxsw: Make port split code more generic David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.