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]>

Reply via email to