[PATCH] net/null: fix Tx statistics accumulation
Stephen Hemminger
stephen at networkplumber.org
Thu Jan 29 21:17:27 CET 2026
On Thu, 29 Jan 2026 14:03:12 +0500
Zhanibek Bakin <zhanibek.bakin at gmail.com> wrote:
> The eth_stats_get() function incorrectly uses assignment (=) instead
> of accumulation (+=) for opackets and obytes in the TX queue loop.
> This causes only the last TX queue's statistics to be reported,
> while the RX side correctly uses +=.
>
> Fixes: 31326ce7f151 ("net/null: count all queues")
> Cc: stable at dpdk.org
>
> Signed-off-by: Zhanibek Bakin <zhanibek.bakin at gmail.com>
> ---
> v2: Fixed Fixes tag to use 12-character hash
> ---
Looks good, queued to next-net.
More information about the stable
mailing list