]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95826e77b771b6797f2ea37ae472785a3e81dcf2
treedacfcdb96b595fe91fa094296be2149badf3ecaf
parentafecad7aa641116e745ecdad0a9995d3209f47e5
mlxsw: spectrum: Simplify port split flow

In commit 8508a18369c0 ("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