]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ldmvsw: unregistering netdev before disable hardware
authorThomas Tai <thomas.tai@oracle.com>
Mon, 8 May 2017 20:37:40 +0000 (13:37 -0700)
committerShannon Nelson <shannon.nelson@oracle.com>
Wed, 31 May 2017 23:43:48 +0000 (16:43 -0700)
commit93ff458563b03db3142c1c3939000a4100aeb37f
tree4f511ebc62c3e80091f002760a44c7c1da3968d2
parentbe285ee4b454a7c00326adfca8af86d65ec01ff0
ldmvsw: unregistering netdev before disable hardware

When running LDom binding/unbinding test, kernel may panic
in ldmvsw_open(). It is more likely that because we're removing
the ldc connection before unregistering the netdev in vsw_port_remove(),
we set up a window of time where one process could be removing the
device while another trying to UP the device. This also sometimes causes
vio handshake error due to opening a device without closing it completely.
We should unregister the netdev before we disable the "hardware".

orabug: 2598091325925306

Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
Signed-off-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Allen Pais <allen.pais@oracle.com>
drivers/net/ethernet/sun/ldmvsw.c