diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/selftest.c')
-rw-r--r-- | drivers/net/ethernet/sfc/selftest.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/net/ethernet/sfc/selftest.c b/drivers/net/ethernet/sfc/selftest.c index 2069f51b2aa9..144bbff5a4ae 100644 --- a/drivers/net/ethernet/sfc/selftest.c +++ b/drivers/net/ethernet/sfc/selftest.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | * Driver for Solarflare Solarstorm network controllers and boards | 2 | * Driver for Solarflare network controllers and boards |
3 | * Copyright 2005-2006 Fen Systems Ltd. | 3 | * Copyright 2005-2006 Fen Systems Ltd. |
4 | * Copyright 2006-2010 Solarflare Communications Inc. | 4 | * Copyright 2006-2012 Solarflare Communications Inc. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms of the GNU General Public License version 2 as published | 7 | * under the terms of the GNU General Public License version 2 as published |
@@ -447,14 +447,7 @@ static int efx_begin_loopback(struct efx_tx_queue *tx_queue) | |||
447 | static int efx_poll_loopback(struct efx_nic *efx) | 447 | static int efx_poll_loopback(struct efx_nic *efx) |
448 | { | 448 | { |
449 | struct efx_loopback_state *state = efx->loopback_selftest; | 449 | struct efx_loopback_state *state = efx->loopback_selftest; |
450 | struct efx_channel *channel; | ||
451 | 450 | ||
452 | /* NAPI polling is not enabled, so process channels | ||
453 | * synchronously */ | ||
454 | efx_for_each_channel(channel, efx) { | ||
455 | if (channel->work_pending) | ||
456 | efx_process_channel_now(channel); | ||
457 | } | ||
458 | return atomic_read(&state->rx_good) == state->packet_count; | 451 | return atomic_read(&state->rx_good) == state->packet_count; |
459 | } | 452 | } |
460 | 453 | ||
@@ -586,10 +579,6 @@ static int efx_wait_for_link(struct efx_nic *efx) | |||
586 | mutex_lock(&efx->mac_lock); | 579 | mutex_lock(&efx->mac_lock); |
587 | efx->type->monitor(efx); | 580 | efx->type->monitor(efx); |
588 | mutex_unlock(&efx->mac_lock); | 581 | mutex_unlock(&efx->mac_lock); |
589 | } else { | ||
590 | struct efx_channel *channel = efx_get_channel(efx, 0); | ||
591 | if (channel->work_pending) | ||
592 | efx_process_channel_now(channel); | ||
593 | } | 582 | } |
594 | 583 | ||
595 | mutex_lock(&efx->mac_lock); | 584 | mutex_lock(&efx->mac_lock); |