Go to the documentation of this file.
21 #include <linux/rtnetlink.h>
23 #include <linux/ipv6.h>
27 #include <linux/if_vlan.h>
30 #include <asm/checksum.h>
38 #define BNAD_TXQ_DEPTH 2048
39 #define BNAD_RXQ_DEPTH 2048
42 #define BNAD_MAX_TXQ_PER_TX 8
43 #define BNAD_TXQ_NUM 1
46 #define BNAD_MAX_RXP_PER_RX 16
47 #define BNAD_MAX_RXQ_PER_RXP 2
66 #define BNAD_RXMODE_PROMISC_DEFAULT BNA_RXMODE_PROMISC
71 #define BNAD_NAME "bna"
72 #define BNAD_NAME_LEN 64
74 #define BNAD_VERSION "3.0.23.0"
76 #define BNAD_MAILBOX_MSIX_INDEX 0
77 #define BNAD_MAILBOX_MSIX_VECTORS 1
78 #define BNAD_INTX_TX_IB_BITMASK 0x1
79 #define BNAD_INTX_RX_IB_BITMASK 0x2
81 #define BNAD_STATS_TIMER_FREQ 1000
82 #define BNAD_DIM_TIMER_FREQ 1000
84 #define BNAD_IOCETH_TIMEOUT 10000
86 #define BNAD_MAX_Q_DEPTH 0x10000
87 #define BNAD_MIN_Q_DEPTH 0x200
89 #define BNAD_MAX_RXQ_DEPTH (BNAD_MAX_Q_DEPTH / bnad_rxqs_per_cq)
91 #define BNAD_MAX_TXQ_DEPTH BNAD_MAX_RXQ_DEPTH
93 #define BNAD_JUMBO_MTU 9000
95 #define BNAD_NETIF_WAKE_THRESHOLD 8
97 #define BNAD_RXQ_REFILL_THRESHOLD_SHIFT 3
100 #define BNAD_TXQ_FREE_SENT 0
101 #define BNAD_TXQ_TX_STARTED 1
104 #define BNAD_RXQ_REFILL 0
105 #define BNAD_RXQ_STARTED 1
106 #define BNAD_RXQ_POST_OK 2
109 #define BNAD_NUM_TXQ (bnad->num_tx * bnad->num_txq_per_tx)
110 #define BNAD_NUM_RXP (bnad->num_rx * bnad->num_rxp_per_rx)
239 #define BNAD_CF_DIM_ENABLED 0x01
240 #define BNAD_CF_PROMISC 0x02
241 #define BNAD_CF_ALLMULTI 0x04
242 #define BNAD_CF_MSIX 0x08
247 #define BNAD_RF_CEE_RUNNING 0
248 #define BNAD_RF_MTU_SET 1
249 #define BNAD_RF_MBOX_IRQ_DISABLED 2
250 #define BNAD_RF_NETDEV_REGISTERED 3
251 #define BNAD_RF_DIM_TIMER_RUNNING 4
252 #define BNAD_RF_STATS_TIMER_RUNNING 5
253 #define BNAD_RF_TX_PRIO_SET 6
258 #define BNAD_FP_IN_RX_PATH 0
394 #define BNAD_UPDATE_CTR(_bnad, _ctr) \
395 (((_bnad)->stats.drv_stats._ctr)++)
397 #define BNAD_GET_CTR(_bnad, _ctr) ((_bnad)->stats.drv_stats._ctr)
399 #define bnad_enable_rx_irq_unsafe(_ccb) \
401 if (likely(test_bit(BNAD_RXQ_STARTED, &(_ccb)->rcb[0]->flags))) {\
402 bna_ib_coalescing_timer_set((_ccb)->i_dbell, \
403 (_ccb)->rx_coalescing_timeo); \
404 bna_ib_ack((_ccb)->i_dbell, 0); \