]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/bnxt_txq.c
net/bnxt: fix mbuf free when clearing Tx queue
[dpdk.git] / drivers / net / bnxt / bnxt_txq.c
index 5ad4ee155e9eca08d03c1a8822518463091d819c..6b866d4454f0b35bfeb6260413431370369166d9 100644 (file)
@@ -8,7 +8,6 @@
 #include <rte_malloc.h>
 
 #include "bnxt.h"
-#include "bnxt_cpr.h"
 #include "bnxt_ring.h"
 #include "bnxt_txq.h"
 #include "bnxt_txr.h"
@@ -35,7 +34,7 @@ static void bnxt_tx_queue_release_mbufs(struct bnxt_tx_queue *txq)
        if (sw_ring) {
                for (i = 0; i < txq->tx_ring->tx_ring_struct->ring_size; i++) {
                        if (sw_ring[i].mbuf) {
-                               rte_pktmbuf_free(sw_ring[i].mbuf);
+                               rte_pktmbuf_free_seg(sw_ring[i].mbuf);
                                sw_ring[i].mbuf = NULL;
                        }
                }