]> 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)
commitce2f8b43684e1e621ada98685a293aeffebdf9e8
tree451afc881ced4339822b4aa72ba5242436e4216e
parentfe740179d41a7bd848ed1bae437b376996150ce0
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