]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Jan 2019 08:20:37 +0000 (09:20 +0100)
commit276de7465563b0efd515bb677999eec819fd3067
treecc91abfd0b858af20856653df1539bca01f58d0f
parent9dd2d2fa319fc4403aed2673ee14b3562121f409
mlxsw: spectrum: Disable lag port TX before removing it

[ 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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c