linux_dsm_epyc7002/drivers/net/ethernet/mellanox
Ido Schimmel 6277d46b10 mlxsw: spectrum: Force link training according to admin state
When setting a new speed we need to disable and enable the port for the
changes to take effect. We currently only do that if the operational
state of the port is up. However, setting a new speed following link
training failure will require us to explicitly set the port down and then
up.

Instead, disable and enable the port based on its administrative state.

Fixes: 56ade8fe3f ("mlxsw: spectrum: Add initial support for Spectrum ASIC")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-15 14:49:50 -07:00
..
mlx4 net/mlx4_en: Avoid unregister_netdev at shutdown flow 2016-06-22 16:38:11 -04:00
mlx5/core net/mlx5e: start/stop all tx queues upon open/close netdev 2016-07-13 11:38:16 -07:00
mlxsw mlxsw: spectrum: Force link training according to admin state 2016-07-15 14:49:50 -07:00
Kconfig mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00
Makefile mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00