mlxsw: spectrum: Change mlxsw_sp_upper to LAG structure
authorAmit Cohen <amcohen@nvidia.com>
Fri, 26 Jan 2024 18:58:26 +0000 (19:58 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 30 Jan 2024 14:47:35 +0000 (15:47 +0100)
commit6dce962c4cf9407c099c2e45b04288c3fada2061
treef12b0d03f767d581b6dedfee1c9dd2b7d13d7b8b
parent4acf4e62cd572b0c806035046b3698f5585ab821
mlxsw: spectrum: Change mlxsw_sp_upper to LAG structure

The structure mlxsw_sp_upper is used only as LAG. Rename it to
mlxsw_sp_lag and move it to spectrum.c file, as it is used only there.
Move the function mlxsw_sp_lag_get() with the structure.

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
drivers/net/ethernet/mellanox/mlxsw/spectrum.h