net/sfc: fix Tx reap behaviour on port stop on EF10 datapath
[dpdk.git] / drivers / net / sfc / sfc_ef10_tx.c
index 9047b3e..167c91d 100644 (file)
@@ -602,7 +602,7 @@ sfc_ef10_tx_qreap(struct sfc_dp_txq *dp_txq)
 
                txd = &txq->sw_ring[completed & txq->ptr_mask];
                if (txd->mbuf != NULL) {
-                       rte_pktmbuf_free(txd->mbuf);
+                       rte_pktmbuf_free_seg(txd->mbuf);
                        txd->mbuf = NULL;
                }
        }