]> git.ipfire.org Git - thirdparty/linux.git/commit
net_sched: act_ctinfo: use atomic64_t for three counters
authorEric Dumazet <edumazet@google.com>
Wed, 9 Jul 2025 09:01:57 +0000 (09:01 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Jul 2025 23:01:16 +0000 (16:01 -0700)
commitd300335b4e18672913dd792ff9f49e6cccf41d26
treecaab06bd48b7b76c8e28794ce0ec2d70ca3b9a13
parent554e66bad84ce4181ad91a2ae9cc74c7c440e836
net_sched: act_ctinfo: use atomic64_t for three counters

Commit 21c167aa0ba9 ("net/sched: act_ctinfo: use percpu stats")
missed that stats_dscp_set, stats_dscp_error and stats_cpmark_set
might be written (and read) locklessly.

Use atomic64_t for these three fields, I doubt act_ctinfo is used
heavily on big SMP hosts anyway.

Fixes: 24ec483cec98 ("net: sched: Introduce act_ctinfo action")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Pedro Tammela <pctammela@mojatatu.com>
Link: https://patch.msgid.link/20250709090204.797558-6-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tc_act/tc_ctinfo.h
net/sched/act_ctinfo.c