net/bnxt: fix out of bound access in bit handling
[dpdk.git] / drivers / net / bnxt / bnxt_rxq.h
index d5ce3b6..fae92ea 100644 (file)
@@ -6,6 +6,9 @@
 #ifndef _BNXT_RQX_H_
 #define _BNXT_RQX_H_
 
+/* Maximum receive burst supported in vector mode. */
+#define RTE_BNXT_MAX_RX_BURST          64U
+
 struct bnxt;
 struct bnxt_rx_ring_info;
 struct bnxt_cp_ring_info;
@@ -39,6 +42,7 @@ struct bnxt_rx_queue {
        uint32_t                        rx_buf_size;
        struct bnxt_rx_ring_info        *rx_ring;
        struct bnxt_cp_ring_info        *cp_ring;
+       struct rte_mbuf                 fake_mbuf;
        rte_atomic64_t          rx_mbuf_alloc_fail;
        const struct rte_memzone *mz;
 };