mlxsw: spectrum: Unmap local port from module during teardown
authorIdo Schimmel <idosch@mellanox.com>
Fri, 26 Feb 2016 16:32:28 +0000 (17:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 21:07:30 +0000 (16:07 -0500)
commit3e9b27b8fc8b00c9edaaa5fd64636e6f2b331f43
tree451afc881ced4339822b4aa72ba5242436e4216e
parent284ef8035708334df99d038da1d3c7ddf77ec1bd
mlxsw: spectrum: Unmap local port from module during teardown

When splitting a port we replace it with 2 or 4 other ports. To be able
to do that we need to remove the original port netdev and unmap it from
its module. However, we first mark it as disabled, as active ports
cannot be unmapped.

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