]> git.baikalelectronics.ru Git - kernel.git/commit
ldmvsw: unregistering netdev before disable hardware
authorThomas Tai <thomas.tai@oracle.com>
Mon, 15 May 2017 17:51:07 +0000 (10:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 May 2017 19:36:08 +0000 (15:36 -0400)
commit24be191735157e65e4db6d8bc6940d918bcfff45
tree6d149c41a4d8f9d1a6912c69f9678737812e7b0f
parentb23577280cc9099d946e17e1800111c09d45a52e
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: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/ldmvsw.c