Commit 27480a7c authored by Breno Leitao's avatar Breno Leitao Committed by Jakub Kicinski
Browse files

net: add dev_dstats_rx_dropped_add() helper



Introduce the dev_dstats_rx_dropped_add() helper to allow incrementing
the rx_drops per-CPU statistic by an arbitrary value, rather than just
one. This is useful for drivers or code paths that need to account for
multiple dropped packets at once, such as when dropping entire queues.

Reviewed-by: default avatarJoe Damato <joe@dama.to>
Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250618-netdevsim_stat-v4-3-19fe0d35e28e@debian.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 788eb4de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment