mlxsw: spectrum: Simplify port split flow
authorIdo Schimmel <idosch@mellanox.com>
Thu, 8 Jun 2017 06:47:44 +0000 (08:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 18:33:41 +0000 (14:33 -0400)
commit5b15385964fab67953df706e1448e1a45db92adf
treedacfcdb96b595fe91fa094296be2149badf3ecaf
parentd7a60306c6812801ccc0a7d12aa0975121b9aa58
mlxsw: spectrum: Simplify port split flow

In commit be94535f9531 ("mlxsw: spectrum: Make split flow match firmware
requirements") we had to modify the port split flow to overcome quirks
in the device's firmware. This resulted in asymmetrical code with
regards to port creation and removal.

The problem in the firmware is long gone and since we can now enforce a
minimal firmware version, we can simplify the code and make it symmetric
again.

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