aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2x.h')
-rw-r--r--drivers/net/bnx2x.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index 9cbf0e82ef38..b9aa6f48ae2e 100644
--- a/drivers/net/bnx2x.h
+++ b/drivers/net/bnx2x.h
@@ -274,6 +274,15 @@ struct bnx2x_fastpath {
274 274
275#define bnx2x_fp(bp, nr, var) (bp->fp[nr].var) 275#define bnx2x_fp(bp, nr, var) (bp->fp[nr].var)
276 276
277#define BNX2X_HAS_TX_WORK(fp) \
278 ((fp->tx_pkt_prod != le16_to_cpu(*fp->tx_cons_sb)) || \
279 (fp->tx_pkt_prod != fp->tx_pkt_cons))
280
281#define BNX2X_HAS_RX_WORK(fp) \
282 (fp->rx_comp_cons != le16_to_cpu(*fp->rx_cons_sb))
283
284#define BNX2X_HAS_WORK(fp) (BNX2X_HAS_RX_WORK(fp) || BNX2X_HAS_TX_WORK(fp))
285
277 286
278/* MC hsi */ 287/* MC hsi */
279#define MAX_FETCH_BD 13 /* HW max BDs per packet */ 288#define MAX_FETCH_BD 13 /* HW max BDs per packet */