diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2018-07-05 16:24:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-08 05:42:28 +0200 |
commit | eec94fdb04806790c7b7e6ea347820064cc6d467 (patch) | |
tree | c89619835d2251871fb2b3cd59de939bef9e49af /include/net/act_api.h | |
parent | openvswitch: kernel datapath clone action (diff) | |
download | linux-eec94fdb04806790c7b7e6ea347820064cc6d467.tar.xz linux-eec94fdb04806790c7b7e6ea347820064cc6d467.zip |
net: sched: use rcu for action cookie update
Implement functions to atomically update and free action cookie
using rcu mechanism.
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/act_api.h')
-rw-r--r-- | include/net/act_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/act_api.h b/include/net/act_api.h index 5ff11adbe2a6..ffc3ef321776 100644 --- a/include/net/act_api.h +++ b/include/net/act_api.h @@ -37,7 +37,7 @@ struct tc_action { spinlock_t tcfa_lock; struct gnet_stats_basic_cpu __percpu *cpu_bstats; struct gnet_stats_queue __percpu *cpu_qstats; - struct tc_cookie *act_cookie; + struct tc_cookie __rcu *act_cookie; struct tcf_chain *goto_chain; }; #define tcf_index common.tcfa_index |