]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: add dev_dstats_rx_dropped_add() helper
authorBreno Leitao <leitao@debian.org>
Wed, 18 Jun 2025 08:32:44 +0000 (01:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Jun 2025 23:15:34 +0000 (16:15 -0700)
commit27480a7c8f0274f8f2fc6c40e4522f38e52bd05f
treec17b855c0ceb2ee5114909b4c350fb223b479f58
parent788eb4de608bbebad237674e1057305340d653ba
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: Joe Damato <joe@dama.to>
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250618-netdevsim_stat-v4-3-19fe0d35e28e@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/netdevice.h