mlxsw: Refactor reference counting code
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
Patches in v1 All 6 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | mlxsw: spectrum: Change mlxsw_sp_upper to LAG structuredrivers/ drivers/ | +17 | 1 reply | Applied |
| 2/6 | mlxsw: spectrum: Remove mlxsw_sp_lag_get()drivers/ | +3 | 1 reply | Applied |
| 3/6 | mlxsw: spectrum: Query max_lag oncedrivers/ drivers/ | +8 | 1 reply | Applied |
| 4/6 | mlxsw: spectrum: Search for free LAD ID oncedrivers/ | +6 | 1 reply | Applied |
| 5/6 | mlxsw: spectrum: Refactor LAG create and destroy codedrivers/ | +73 | 1 reply | Applied |
| 6/6 | mlxsw: Use refcount_t for reference countingdrivers/ drivers/ drivers/ +3 more | +40 | 1 reply | Applied |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Ido Schimmel | Simon Horman |
|---|---|---|
| 1/6 | R-b | R-b |
| 2/6 | R-b | R-b |
| 3/6 | R-b | R-b |
| 4/6 | R-b | R-b |
| 5/6 | R-b | R-b |
| 6/6 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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