]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit198a2035e4ec7a00e999f4a8c79339b282deba9b
tree451afc881ced4339822b4aa72ba5242436e4216e
parent20226478251e48f0aa28ee5ddb2798b29318a00a
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