aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnxt/bnxt_ring.h
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2018-04-23 14:20:17 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2018-04-24 08:23:10 +0100
commit5076209fa6f4affdf93f4d2f23f51a427f64f72b (patch)
tree2dd6d71d781670133d79938ba6a3c27163e82306 /drivers/net/bnxt/bnxt_ring.h
parent68f5e9d7d40c36c6ea398953af7e56519928ea78 (diff)
parent18af4227fa5eee002b1a79207935620f6112803e (diff)
Merge branch 'upstream-16.11-stable' into 16.11.x
Change-Id: Ie0b10377bb151ddac6307982be5b15624206e6a6 Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
Diffstat (limited to 'drivers/net/bnxt/bnxt_ring.h')
-rw-r--r--drivers/net/bnxt/bnxt_ring.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bnxt/bnxt_ring.h b/drivers/net/bnxt/bnxt_ring.h
index 8656549a..22a56eb1 100644
--- a/drivers/net/bnxt/bnxt_ring.h
+++ b/drivers/net/bnxt/bnxt_ring.h
@@ -65,6 +65,7 @@
#define MAX_CP_DESC_CNT (16 * 1024)
#define INVALID_HW_RING_ID ((uint16_t)-1)
+#define INVALID_STATS_CTX_ID ((uint16_t)-1)
struct bnxt_ring {
void *bd;
@@ -92,7 +93,7 @@ struct bnxt_tx_ring_info;
struct bnxt_rx_ring_info;
struct bnxt_cp_ring_info;
void bnxt_free_ring(struct bnxt_ring *ring);
-void bnxt_init_ring_grps(struct bnxt *bp);
+int bnxt_init_ring_grps(struct bnxt *bp);
int bnxt_alloc_rings(struct bnxt *bp, uint16_t qidx,
struct bnxt_tx_ring_info *tx_ring_info,
struct bnxt_rx_ring_info *rx_ring_info,