[PATCH v1 1/1] net/nbl: fix queue count issue on port restart

Stephen Hemminger stephen at networkplumber.org
Tue Mar 3 15:38:15 CET 2026


On Fri, 27 Feb 2026 18:12:11 -0800
Dimon Zhao <dimon.zhao at nebula-matrix.com> wrote:

> Remove tx_ring_num and rx_ring_num from struct nbl_txrx_mgt to fix
> an issue where these counts keep increasing during port stop/start cycles.
> 
> The counts were incremented in tx_queue_setup/rx_queue_setup, but never
> decremented. This causes incorrect queue counts after multiple port
> restarts. Since the actual queue counts are already available via
> eth_dev->data->nb_tx_queues and nb_rx_queues, use those instead.
> 
> Update nbl_res_txrx_get_xstats() to use eth_dev->data->nb_rx_queues.
> 
> Fixes: 661c0ccf2512 ("net/nbl: support statistics")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Dimon Zhao <dimon.zhao at nebula-matrix.com>
> ---

Applied to next-net


More information about the dev mailing list