aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-25 11:10:05 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-26 18:59:23 -0500
commit1338344a84f5ea60a6689127d2717845e8564b1a (patch)
tree8ae6b8cee9e9148bd2ec536959639ec92f51fea5
parent127e6e10ad17585c48cba8e1dcf30d98b90ee583 (diff)
sfc: Remove unused function efx_flush_queues()
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/sfc/efx.c13
-rw-r--r--drivers/net/sfc/efx.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index dc85efaf15a0..4ebad613e6de 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -1237,19 +1237,6 @@ static void efx_remove_all(struct efx_nic *efx)
1237 efx_remove_nic(efx); 1237 efx_remove_nic(efx);
1238} 1238}
1239 1239
1240/* A convinience function to safely flush all the queues */
1241void efx_flush_queues(struct efx_nic *efx)
1242{
1243 EFX_ASSERT_RESET_SERIALISED(efx);
1244
1245 efx_stop_all(efx);
1246
1247 efx_fini_channels(efx);
1248 efx_init_channels(efx);
1249
1250 efx_start_all(efx);
1251}
1252
1253/************************************************************************** 1240/**************************************************************************
1254 * 1241 *
1255 * Interrupt moderation 1242 * Interrupt moderation
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h
index 3497b036f408..7acf82108a4f 100644
--- a/drivers/net/sfc/efx.h
+++ b/drivers/net/sfc/efx.h
@@ -56,7 +56,6 @@ extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay);
56 56
57/* Channels */ 57/* Channels */
58extern void efx_process_channel_now(struct efx_channel *channel); 58extern void efx_process_channel_now(struct efx_channel *channel);
59extern void efx_flush_queues(struct efx_nic *efx);
60#define EFX_EVQ_SIZE 4096 59#define EFX_EVQ_SIZE 4096
61#define EFX_EVQ_MASK (EFX_EVQ_SIZE - 1) 60#define EFX_EVQ_MASK (EFX_EVQ_SIZE - 1)
62 61