net/bnxt: support runtime queue setup
[dpdk.git] / drivers / net / bnxt / bnxt_txq.c
index bc78922..830416a 100644 (file)
@@ -8,6 +8,7 @@
 #include <rte_malloc.h>
 
 #include "bnxt.h"
+#include "bnxt_hwrm.h"
 #include "bnxt_ring.h"
 #include "bnxt_txq.h"
 #include "bnxt_txr.h"
@@ -61,6 +62,7 @@ void bnxt_tx_queue_release_op(void *tx_queue)
                        return;
 
                /* Free TX ring hardware descriptors */
+               bnxt_free_hwrm_tx_ring(txq->bp, txq->queue_id);
                bnxt_tx_queue_release_mbufs(txq);
                if (txq->tx_ring) {
                        bnxt_free_ring(txq->tx_ring->tx_ring_struct);