diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-10-23 04:30:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-24 07:27:05 -0400 |
commit | 3ffeabdd2bc62e0ebcb1a51a5d959a86a7a915fc (patch) | |
tree | a3b17cc4b0f8300aca46d67a6f9a362f6b052975 /drivers/net/sfc/efx.h | |
parent | 12d00cadcc45382fc127712aa35bd0c96cbf81d9 (diff) |
sfc: Eliminate indirect lookups of queue size constants
Move size and mask definitions into efx.h; calculate page orders in falcon.c.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/efx.h')
-rw-r--r-- | drivers/net/sfc/efx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/sfc/efx.h b/drivers/net/sfc/efx.h index aecaf62f4929..20c8d62fd6e7 100644 --- a/drivers/net/sfc/efx.h +++ b/drivers/net/sfc/efx.h | |||
@@ -25,16 +25,22 @@ extern netdev_tx_t efx_xmit(struct efx_nic *efx, | |||
25 | struct sk_buff *skb); | 25 | struct sk_buff *skb); |
26 | extern void efx_stop_queue(struct efx_nic *efx); | 26 | extern void efx_stop_queue(struct efx_nic *efx); |
27 | extern void efx_wake_queue(struct efx_nic *efx); | 27 | extern void efx_wake_queue(struct efx_nic *efx); |
28 | #define EFX_TXQ_SIZE 1024 | ||
29 | #define EFX_TXQ_MASK (EFX_TXQ_SIZE - 1) | ||
28 | 30 | ||
29 | /* RX */ | 31 | /* RX */ |
30 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); | 32 | extern void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index); |
31 | extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, | 33 | extern void efx_rx_packet(struct efx_rx_queue *rx_queue, unsigned int index, |
32 | unsigned int len, bool checksummed, bool discard); | 34 | unsigned int len, bool checksummed, bool discard); |
33 | extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); | 35 | extern void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue, int delay); |
36 | #define EFX_RXQ_SIZE 1024 | ||
37 | #define EFX_RXQ_MASK (EFX_RXQ_SIZE - 1) | ||
34 | 38 | ||
35 | /* Channels */ | 39 | /* Channels */ |
36 | extern void efx_process_channel_now(struct efx_channel *channel); | 40 | extern void efx_process_channel_now(struct efx_channel *channel); |
37 | extern void efx_flush_queues(struct efx_nic *efx); | 41 | extern void efx_flush_queues(struct efx_nic *efx); |
42 | #define EFX_EVQ_SIZE 4096 | ||
43 | #define EFX_EVQ_MASK (EFX_EVQ_SIZE - 1) | ||
38 | 44 | ||
39 | /* Ports */ | 45 | /* Ports */ |
40 | extern void efx_stats_disable(struct efx_nic *efx); | 46 | extern void efx_stats_disable(struct efx_nic *efx); |