]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jan 2019 21:53:54 +0000 (16:53 -0500)
commit6f2d3e1eb64a20c7aa9cc0ad6b8f20a33bcdc4c2
tree318dc5da556dbe41c571de9514ca16614dcf74a7
parentc7e5198c8d3801b5a65af72cfbb0837ca93872bc
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: 0dac7b293e59 ("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