diff options
author | Edward Cree <ecree@solarflare.com> | 2020-06-29 14:39:32 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-29 17:37:49 -0700 |
commit | 850b722756d6886b3269e548398934e81a3c7503 (patch) | |
tree | 28aa41dd34e2a809f6713bb8ed1e02eb563fff46 /drivers/net/ethernet/sfc/ef10.c | |
parent | sfc: commonise PCI error handlers (diff) | |
download | linux-dev-850b722756d6886b3269e548398934e81a3c7503.tar.xz linux-dev-850b722756d6886b3269e548398934e81a3c7503.zip |
sfc: commonise drain event handling
Avoids a call from generic MCDI code into ef10.c.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef10.c')
-rw-r--r-- | drivers/net/ethernet/sfc/ef10.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index 3bdb8606512a..efc49869320f 100644 --- a/drivers/net/ethernet/sfc/ef10.c +++ b/drivers/net/ethernet/sfc/ef10.c @@ -3117,14 +3117,6 @@ fail: netif_err(efx, hw, efx->net_dev, "%s: failed rc=%d\n", __func__, rc); } -void efx_ef10_handle_drain_event(struct efx_nic *efx) -{ - if (atomic_dec_and_test(&efx->active_queues)) - wake_up(&efx->flush_wq); - - WARN_ON(atomic_read(&efx->active_queues) < 0); -} - static int efx_ef10_fini_dmaq(struct efx_nic *efx) { struct efx_tx_queue *tx_queue; |