mlxsw: spectrum: Remove mlxsw_sp_lag_get()
authorAmit Cohen <amcohen@nvidia.com>
Fri, 26 Jan 2024 18:58:27 +0000 (19:58 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Jan 2024 14:47:35 +0000 (15:47 +0100)
commit5a448905e37ecf121ede090495540230b5d03946
tree976499a8b8e5f82c241c6f4f98d0e57fe9c5ab27
parent6dce962c4cf9407c099c2e45b04288c3fada2061
mlxsw: spectrum: Remove mlxsw_sp_lag_get()

A next patch will add mlxsw_sp_lag_{get,put}() functions to handle LAG
reference counting and create/destroy it only for first user/last user.
Remove mlxsw_sp_lag_get() function and access LAG array directly.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c