Skip to content

mlxsw: Refactor reference counting code

Petr Machata netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesApplied 6/6

Patches in v1 All 6 applied

#Subject and filesSizeRepliesApplied
1/6mlxsw: spectrum: Change mlxsw_sp_upper to LAG structuredrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h+17 -161 replyApplied
2/6mlxsw: spectrum: Remove mlxsw_sp_lag_get()drivers/net/ethernet/mellanox/mlxsw/spectrum.c+3 -91 replyApplied
3/6mlxsw: spectrum: Query max_lag oncedrivers/net/ethernet/mellanox/mlxsw/spectrum.c drivers/net/ethernet/mellanox/mlxsw/spectrum.h+8 -251 replyApplied
4/6mlxsw: spectrum: Search for free LAD ID oncedrivers/net/ethernet/mellanox/mlxsw/spectrum.c+6 -91 replyApplied
5/6mlxsw: spectrum: Refactor LAG create and destroy codedrivers/net/ethernet/mellanox/mlxsw/spectrum.c+73 -431 replyApplied
6/6mlxsw: Use refcount_t for reference countingdrivers/net/ethernet/mellanox/mlxsw/core_acl_flex_actions.c drivers/net/ethernet/mellanox/mlxsw/core_acl_flex_keys.c drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c +3 more+40 -361 replyApplied

Reviews trailers per patch

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

PatchIdo SchimmelSimon Horman
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b R-b
6/6R-b R-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/6] mlxsw: Refactor reference counting code

Amit Cohen writes:

This set converts all reference counters defined as 'unsigned int' to refcount_t type. The reference counting of LAGs can be simplified, so first refactor the related code and then change the type of the reference counter.

Patch set overview:
Patches #1-#4 are preparations for LAG refactor
Patch #5 refactors LAG code and change the type of reference counter Patch #6 converts the remaining reference counters in mlxsw driver

Amit Cohen (6):
mlxsw: spectrum: Change mlxsw_sp_upper to LAG structure
mlxsw: spectrum: Remove mlxsw_sp_lag_get()
mlxsw: spectrum: Query max_lag once
mlxsw: spectrum: Search for free LAD ID once
mlxsw: spectrum: Refactor LAG create and destroy code
mlxsw: Use refcount_t for reference counting

 .../mellanox/mlxsw/core_acl_flex_actions.c    |  16 +-
 .../mellanox/mlxsw/core_acl_flex_keys.c       |   9 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    | 164 ++++++++++--------
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |  15 +-
 .../ethernet/mellanox/mlxsw/spectrum_acl.c    |  11 +-
 .../mellanox/mlxsw/spectrum_acl_tcam.c        |  17 +-
 .../ethernet/mellanox/mlxsw/spectrum_router.c |  15 +-
 .../mellanox/mlxsw/spectrum_switchdev.c       |   8 +-
 8 files changed, 132 insertions(+), 123 deletions(-)
Signature · 1 line
2.43.0