On Sun, Nov 29, 2026 at 01:53:06PM +0000, Anurag Mandal wrote:
> Since the common scalar Tx path frees mbufs during
> descriptor cleanup, ci_txq_release_all_mbufs() only
> frees the entries between last_desc_cleaned + 1 and
> tx_tail - 1 for non-vector queues, and then clears
> the whole software ring.
>
> ixgbe pmd does not use the common scalar Tx path.
> Its full-featured Tx function frees an mbuf only
> when the ring slot is reused, and its simple Tx
> function never updates last_desc_cleaned.
> Once the ring has wrapped, completed (full-featured)
> or in-flight (simple) mbufs outside that window are
> dropped without being freed.
> Up to a ring of mbufs is leaked per Tx queue on every
> queue stop, port stop and queue release, which
> exhausts the mempool after repeated stop/start cycles.
>
> Free every non-NULL software ring entry for the scalar
> paths, as was done earlier.
> The vector path keeps using the common helper.
>
> Fixes: bfe024981f41 ("net/intel: optimize for fast-free hint")
> Cc: [email protected]
>
> Signed-off-by: Anurag Mandal <[email protected]>
> ---
> drivers/net/intel/ixgbe/ixgbe_rxtx.c | 28 +++++++++++++++++++++++++---
> 1 file changed, 25 insertions(+), 3 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH 7/8] net/ixgbe: fix eventfd leak on start... Bruce Richardson
- [PATCH 8/8] net/ixgbe: fix VF interrupt callback leak on ... Anurag Mandal
- Re: [PATCH 8/8] net/ixgbe: fix VF interrupt callback... Bruce Richardson
- [PATCH 6/8] net/ixgbe: fix security context leak on init ... Anurag Mandal
- Re: [PATCH 6/8] net/ixgbe: fix security context leak... Bruce Richardson
- [PATCH 5/8] net/ixgbe: fix VF representor port leak Anurag Mandal
- Re: [PATCH 5/8] net/ixgbe: fix VF representor port l... Bruce Richardson
- [PATCH 2/8] net/ixgbe: fix Tx queue leak on ring allocati... Anurag Mandal
- Re: [PATCH 2/8] net/ixgbe: fix Tx queue leak on ring... Bruce Richardson
- [PATCH 1/8] net/ixgbe: fix Tx mbuf leak on queue stop Anurag Mandal
- Re: [PATCH 1/8] net/ixgbe: fix Tx mbuf leak on queue... Bruce Richardson
- [PATCH 3/8] net/ixgbe: fix Rx mbuf leak on queue start fa... Anurag Mandal
- Re: [PATCH 3/8] net/ixgbe: fix Rx mbuf leak on queue... Bruce Richardson
- [PATCH v2 0/9] net/ixgbe: fix memory and resource leaks Anurag Mandal
- [PATCH v2 2/9] net/ixgbe: fix Tx queue leak on ring ... Anurag Mandal
- [PATCH v2 4/9] net/ixgbe: fix MAC address leak on de... Anurag Mandal
- [PATCH v2 7/9] net/ixgbe: fix eventfd leak on start ... Anurag Mandal
- [PATCH v2 1/9] net/ixgbe: fix Tx mbuf leak on queue ... Anurag Mandal
- [PATCH v2 9/9] net/ixgbe: fix VF interrupt callback ... Anurag Mandal
- [PATCH v2 8/9] net/ixgbe: fix VF use after free in i... Anurag Mandal
- [PATCH v2 6/9] net/ixgbe: fix security context leak ... Anurag Mandal

