mlxsw: pci: Permit toggling LAG mode
authorPetr Machata <petrm@nvidia.com>
Thu, 19 Oct 2023 10:27:16 +0000 (12:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2023 10:47:49 +0000 (11:47 +0100)
commitdaee7aaba8491e64911438696c5f3f7cb77edf5e
treebd57a6aabf0606008eeca1f690997559eaa7176d
parentb2e9b1fe8c2e096782c10db868889c64ef8f8a53
mlxsw: pci: Permit toggling LAG mode

Add to struct mlxsw_config_profile a field lag_mode_prefer_sw for the
driver to indicate that SW LAG mode should be configured if possible. Add
to the PCI module code to set lag_mode as appropriate.

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