On Tue, 15 Oct 2024 11:09:22 +0800 Howard Wang <howard_w...@realsil.com.cn> wrote:
> +rtl_tx_queue_release_mbufs(struct rtl_tx_queue *txq) > +{ > + int i; > + > + PMD_INIT_FUNC_TRACE(); > + > + if (txq != NULL) { > + if (txq->sw_ring != NULL) { > + for (i = 0; i < txq->nb_tx_desc; i++) { > + if (txq->sw_ring[i].mbuf != NULL) { > + > rte_pktmbuf_free_seg(txq->sw_ring[i].mbuf); > + txq->sw_ring[i].mbuf = NULL; calling free_seg is wrong since you support multi seg transmit