]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit7adfb9c5790af4091b1505343211dda9871ec3d4
treef98f068d2f78df178a63af77ebf74252ac0ace21
parent59523da667219ce1ba71e144a90531b7e505c7ba
mlxsw: spectrum: Disable lag port TX before removing it

BugLink: https://bugs.launchpad.net/bugs/1837477
[ Upstream commit 8adbe212a159d9c78a90fca1d854f6e63452426b ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c