summaryrefslogtreecommitdiff
path: root/include/net/tc_act
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2025-07-09 09:02:02 +0000
committerJakub Kicinski <kuba@kernel.org>2025-07-11 16:01:17 -0700
commitcec7a5c6c695ba2226b6120dc330e3bea3ea96f8 (patch)
tree00838bdb269d6bd054627396d1a190f193fc83f0 /include/net/tc_act
parent9d096746572616a50cac4906f528a1959c0ee1c2 (diff)
downloadlinux-cec7a5c6c695ba2226b6120dc330e3bea3ea96f8.tar.gz
linux-cec7a5c6c695ba2226b6120dc330e3bea3ea96f8.tar.bz2
linux-cec7a5c6c695ba2226b6120dc330e3bea3ea96f8.zip
net_sched: act_police: use RCU in tcf_police_dump()
Also storing tcf_action into struct tcf_police_params makes sure there is no discrepancy in tcf_police_act(). Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20250709090204.797558-11-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/tc_act')
-rw-r--r--include/net/tc_act/tc_police.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/tc_act/tc_police.h b/include/net/tc_act/tc_police.h
index 490d88cb5233..a89fc8e68b1e 100644
--- a/include/net/tc_act/tc_police.h
+++ b/include/net/tc_act/tc_police.h
@@ -5,10 +5,11 @@
#include <net/act_api.h>
struct tcf_police_params {
+ int action;
int tcfp_result;
u32 tcfp_ewma_rate;
- s64 tcfp_burst;
u32 tcfp_mtu;
+ s64 tcfp_burst;
s64 tcfp_mtu_ptoks;
s64 tcfp_pkt_burst;
struct psched_ratecfg rate;