summaryrefslogtreecommitdiffstats
path: root/include/net/tcx.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 19:23:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 19:23:34 +0000
commit46f041b7453a9493c7bf4e9b1c1666c5556f48f2 (patch)
treeafd38c73d3b6b7a6567383aeeaee0536dcdcb920 /include/net/tcx.h
parentAdding upstream version 6.9.9. (diff)
downloadlinux-46f041b7453a9493c7bf4e9b1c1666c5556f48f2.tar.xz
linux-46f041b7453a9493c7bf4e9b1c1666c5556f48f2.zip
Adding upstream version 6.9.10.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/net/tcx.h')
-rw-r--r--include/net/tcx.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/include/net/tcx.h b/include/net/tcx.h
index 04be937778..0a5f40a91c 100644
--- a/include/net/tcx.h
+++ b/include/net/tcx.h
@@ -13,7 +13,7 @@ struct mini_Qdisc;
struct tcx_entry {
struct mini_Qdisc __rcu *miniq;
struct bpf_mprog_bundle bundle;
- bool miniq_active;
+ u32 miniq_active;
struct rcu_head rcu;
};
@@ -124,11 +124,16 @@ static inline void tcx_skeys_dec(bool ingress)
tcx_dec();
}
-static inline void tcx_miniq_set_active(struct bpf_mprog_entry *entry,
- const bool active)
+static inline void tcx_miniq_inc(struct bpf_mprog_entry *entry)
{
ASSERT_RTNL();
- tcx_entry(entry)->miniq_active = active;
+ tcx_entry(entry)->miniq_active++;
+}
+
+static inline void tcx_miniq_dec(struct bpf_mprog_entry *entry)
+{
+ ASSERT_RTNL();
+ tcx_entry(entry)->miniq_active--;
}
static inline bool tcx_entry_is_active(struct bpf_mprog_entry *entry)