mlxsw: spectrum: Set SW LAG mode on Spectrum>1
authorPetr Machata <petrm@nvidia.com>
Thu, 19 Oct 2023 10:27:20 +0000 (12:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2023 10:47:50 +0000 (11:47 +0100)
commitb46c1f3f5e079d2b6cb2845715942fe75304e498
treeb34dfbd2e71a853718e9c81edf90c27de8f8e4f8
parentc678972580aedd28f273afdca94da6bb193ba3e7
mlxsw: spectrum: Set SW LAG mode on Spectrum>1

On Spectrum-2, Spectrum-3 and Spectrum-4 machines, request SW
responsibility for placement of the LAG table.

On Spectrum-1, some FW versions claim to support lag_mode field despite
quietly ignoring any settings made to that field. Thus refrain from
attempting to configure lag_mode on those systems at all.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c