net/bnxt: check resource reservation in TRUFLOW
[dpdk.git] / drivers / net / bnxt / bnxt_rxq.h
index 201bda2..42bd8e7 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2014-2018 Broadcom
+ * Copyright(c) 2014-2021 Broadcom
  * All rights reserved.
  */
 
@@ -16,9 +16,6 @@ struct bnxt;
 struct bnxt_rx_ring_info;
 struct bnxt_cp_ring_info;
 struct bnxt_rx_queue {
-       rte_spinlock_t          lock;   /* Synchronize between rx_queue_stop
-                                        * and fast path
-                                        */
        struct rte_mempool      *mb_pool; /* mbuf pool for RX ring */
        uint64_t                mbuf_initializer; /* val to init mbuf */
        uint16_t                nb_rx_desc; /* num of RX desc */
@@ -33,6 +30,7 @@ struct bnxt_rx_queue {
        uint8_t                 rx_deferred_start; /* not in global dev start */
        uint8_t                 rx_started; /* RX queue is started */
        uint8_t                 drop_en; /* Drop when rx desc not available. */
+       uint8_t                 in_reset; /* Rx ring is scheduled for reset */
 
        struct bnxt             *bp;
        int                     index;