]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net_sched: act: remove tcfa_qstats
authorEric Dumazet <edumazet@google.com>
Mon, 1 Sep 2025 09:31:41 +0000 (09:31 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Sep 2025 22:52:24 +0000 (15:52 -0700)
commit5d14bbf9d1d90cb7ca3e46fe2c8a4277572eab94
tree0b5396024f6567b0cb9b9978dba6d339007e1755
parent3016024d7514e953cb3a6715ce29799373512eb4
net_sched: act: remove tcfa_qstats

tcfa_qstats is currently only used to hold drops and overlimits counters.

tcf_action_inc_drop_qstats() and tcf_action_inc_overlimit_qstats()
currently acquire a->tcfa_lock to increment these counters.

Switch to two atomic_t to get lock-free accounting.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jamal Hadi Salim <jhs@mojatatu.com>
Link: https://patch.msgid.link/20250901093141.2093176-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/act_api.h
net/sched/act_api.c