[PATCH v1 1/1] net/nbl: fix Rx/Tx stats concurrency

Stephen Hemminger stephen at networkplumber.org
Thu Nov 27 18:55:56 CET 2025


On Tue, 25 Nov 2025 18:54:36 -0800
Dimon Zhao <dimon.zhao at nebula-matrix.com> wrote:

> Queue statistics are being continuously updated in Rx/Tx burst
> routines while handling traffic. In addition to that, statistics
> can be reset (written with zeroes) on statistics reset in other
> threads, causing a race condition, which in turn could result in
> wrong stats.
> 
> The patch provides an approach with reference values, allowing
> the actual counters to be writable within Rx/Tx burst threads
> only, and updating reference values on stats reset.
> 
> Fixes: 661c0ccf2512 ("net/nbl: support statistics")
> 
> Signed-off-by: Dimon Zhao <dimon.zhao at nebula-matrix.com>

Queued to next-net


More information about the dev mailing list