[PATCH v1 12/18] net/r8169: implement Tx path
Stephen Hemminger
stephen at networkplumber.org
Tue Oct 15 17:35:45 CEST 2024
On Tue, 15 Oct 2024 08:30:19 -0700
Stephen Hemminger <stephen at networkplumber.org> wrote:
> On Tue, 15 Oct 2024 11:09:22 +0800
> Howard Wang <howard_wang at 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
Never mind, code is correct. Each tx ring entry is an mbuf segment.
More information about the dev
mailing list