mbox series

[net-next,0/6] mlxsw: Refactor reference counting code

Message ID cover.1706293430.git.petrm@nvidia.com (mailing list archive)
Headers show
Series mlxsw: Refactor reference counting code | expand

Message

Petr Machata Jan. 26, 2024, 6:58 p.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 30, 2024, 2:50 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Fri, 26 Jan 2024 19:58:25 +0100 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,1/6] mlxsw: spectrum: Change mlxsw_sp_upper to LAG structure
    https://git.kernel.org/netdev/net-next/c/6dce962c4cf9
  - [net-next,2/6] mlxsw: spectrum: Remove mlxsw_sp_lag_get()
    https://git.kernel.org/netdev/net-next/c/5a448905e37e
  - [net-next,3/6] mlxsw: spectrum: Query max_lag once
    https://git.kernel.org/netdev/net-next/c/c6ca2884ba04
  - [net-next,4/6] mlxsw: spectrum: Search for free LAD ID once
    https://git.kernel.org/netdev/net-next/c/8d8d33d4e38b
  - [net-next,5/6] mlxsw: spectrum: Refactor LAG create and destroy code
    https://git.kernel.org/netdev/net-next/c/be2f16a994f0
  - [net-next,6/6] mlxsw: Use refcount_t for reference counting
    https://git.kernel.org/netdev/net-next/c/1267f7223bec

You are awesome, thank you!