Skip to content

mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared buffer

Ido Schimmel netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 5 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mlxsw: spectrum_buffers: Prevent changing CPU port's configurationdrivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c+10 -00 replies
2/3mlxsw: spectrum: Register CPU port with devlinkdrivers/net/ethernet/mellanox/mlxsw/core.c drivers/net/ethernet/mellanox/mlxsw/core.h drivers/net/ethernet/mellanox/mlxsw/spectrum.c+105 -90 replies
3/3mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared bufferdrivers/net/ethernet/mellanox/mlxsw/spectrum_buffers.c+33 -80 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJiri Pirko
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH net-next v3 0/3] mlxsw: spectrum_buffers: Add the ability to query the CPU port's shared buffer

From: Ido Schimmel <[email protected]>

Shalom says:

While debugging packet loss towards the CPU, it is useful to be able to query the CPU port's shared buffer quotas and occupancy.

Patch #1 prevents changing the CPU port's threshold and binding.

Patch #2 registers the CPU port with devlink.

Patch #3 adds the ability to query the CPU port's shared buffer quotas and occupancy.

v3:

Patch #2:
* Remove unnecessary wrapping

v2:

Patch #1:
* s/0/MLXSW_PORT_CPU_PORT/
* Assign "mlxsw_sp->ports[MLXSW_PORT_CPU_PORT]" at the end of mlxsw_sp_cpu_port_create() to avoid NULL assignment on error path
* Add common functions for mlxsw_core_port_init/fini()

Patch #2:
* Move "changing CPU port's threshold and binding" check to a separate patch

Shalom Toledo (3):
mlxsw: spectrum_buffers: Prevent changing CPU port's configuration
mlxsw: spectrum: Register CPU port with devlink
mlxsw: spectrum_buffers: Add the ability to query the CPU port's
shared buffer

 drivers/net/ethernet/mellanox/mlxsw/core.c    | 63 ++++++++++++++++---
 drivers/net/ethernet/mellanox/mlxsw/core.h    |  5 ++
 .../net/ethernet/mellanox/mlxsw/spectrum.c    | 46 ++++++++++++++
 .../mellanox/mlxsw/spectrum_buffers.c         | 51 ++++++++++++---
 4 files changed, 148 insertions(+), 17 deletions(-)
Signature · 1 line
2.21.0