Skip to content

mlxsw: Mirroring cleanups

Ido Schimmel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mlxsw: spectrum_span: Reduce nesting in mlxsw_sp_span_entry_configure()drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c+19 -100 replies
2/5mlxsw: spectrum_span: Rename parms() to parms_set()drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h+9 -90 replies
3/5mlxsw: spectrum_span: Remove unnecessary debug printsdrivers/net/ethernet/mellanox/mlxsw/spectrum_span.c+0 -50 replies
4/5mlxsw: spectrum_span: Use 'refcount_t' for reference countingdrivers/net/ethernet/mellanox/mlxsw/spectrum_span.c drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h+10 -90 replies
5/5mlxsw: spectrum_span: Replace zero-length array with flexible-array memberdrivers/net/ethernet/mellanox/mlxsw/spectrum_span.c+1 -10 replies

Reviews trailers per patch

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

PatchJiri Pirko
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v1 thread

Cover letter [PATCH net-next 0/5] mlxsw: Mirroring cleanups

From: Ido Schimmel <[email protected]>

This patch set contains various cleanups in SPAN (mirroring) code noticed by Amit and I while working on future enhancements in this area. No functional changes intended. Tested by current mirroring selftests.

Patches #1-#2 from Amit reduce nesting in a certain function and rename a callback to a more meaningful name.

Patch #3 removes debug prints that have little value.

Patch #4 converts a reference count to 'refcount_t' in order to catch over/under flows.

Patch #5 replaces a zero-length array with flexible-array member in order to get a compiler warning in case the flexible array does not occur last in the structure.

Amit Cohen (2):
mlxsw: spectrum_span: Reduce nesting in
mlxsw_sp_span_entry_configure()
mlxsw: spectrum_span: Rename parms() to parms_set()

Ido Schimmel (3):
mlxsw: spectrum_span: Remove unnecessary debug prints
mlxsw: spectrum_span: Use 'refcount_t' for reference counting
mlxsw: spectrum_span: Replace zero-length array with flexible-array
member

 .../ethernet/mellanox/mlxsw/spectrum_span.c   | 66 ++++++++++---------
 .../ethernet/mellanox/mlxsw/spectrum_span.h   |  7 +-
 2 files changed, 39 insertions(+), 34 deletions(-)
Signature · 1 line
2.24.1