mlxsw: spectrum: Disable lag port TX before removing it
authorJiri Pirko <jiri@mellanox.com>
Tue, 8 Jan 2019 16:48:05 +0000 (16:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2019 21:53:54 +0000 (16:53 -0500)
commit8adbe212a159d9c78a90fca1d854f6e63452426b
tree318dc5da556dbe41c571de9514ca16614dcf74a7
parent04d075b7aa8433dc3c98e14c571705effc318cd8
mlxsw: spectrum: Disable lag port TX before removing it

Make sure that lag port TX is disabled before mlxsw_sp_port_lag_leave()
is called and prevent from possible EMAD error.

Fixes: 0d65fc13042f ("mlxsw: spectrum: Implement LAG port join/leave")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c