diff options
author | Daniel Pieczko <dpieczko@solarflare.com> | 2012-10-17 13:21:23 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-12-01 02:37:35 +0000 |
commit | c2f3b8e3a44b6fe9e36704e30157ebe1a88c08b1 (patch) | |
tree | a33870250f24b7b832a52bb039aee7f4b20d842b /drivers/net/ethernet/sfc/selftest.c | |
parent | 525d9e824018cd7cc8d8d44832ddcd363abfe6e1 (diff) | |
download | op-kernel-dev-c2f3b8e3a44b6fe9e36704e30157ebe1a88c08b1.zip op-kernel-dev-c2f3b8e3a44b6fe9e36704e30157ebe1a88c08b1.tar.gz |
sfc: lock TX queues when calling netif_device_detach()
The assertion of netif_device_present() at the top of
efx_hard_start_xmit() may fail if we don't do this.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/selftest.c')
-rw-r--r-- | drivers/net/ethernet/sfc/selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/selftest.c b/drivers/net/ethernet/sfc/selftest.c index f6651d3..2069f51 100644 --- a/drivers/net/ethernet/sfc/selftest.c +++ b/drivers/net/ethernet/sfc/selftest.c @@ -722,7 +722,7 @@ int efx_selftest(struct efx_nic *efx, struct efx_self_tests *tests, /* Detach the device so the kernel doesn't transmit during the * loopback test and the watchdog timeout doesn't fire. */ - netif_device_detach(efx->net_dev); + efx_device_detach_sync(efx); if (efx->type->test_chip) { rc_reset = efx->type->test_chip(efx, tests); |