]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Fix rollback order in LAG join failure
authorIdo Schimmel <idosch@mellanox.com>
Fri, 6 May 2016 20:18:39 +0000 (22:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 May 2016 22:27:42 +0000 (18:27 -0400)
commit43bed852ddd8cc91f5293156f07b201578cfed9d
treedb502cb1e6ea82e641470089c903ba560bb9f60f
parentdef48a77e9a7cdc932376fd024ba4e6bb09ed661
mlxsw: spectrum: Fix rollback order in LAG join failure

Make the leave procedure in the error path symmetric to the join
procedure and first remove the port from the collector before
potentially destroying the LAG.

Fixes: 0dac7b293e59 ("mlxsw: spectrum: Implement LAG port join/leave")
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c