diff options
author | Vlad Buslov <vladbu@mellanox.com> | 2018-07-05 17:24:23 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-08 12:42:28 +0900 |
commit | eec94fdb04806790c7b7e6ea347820064cc6d467 (patch) | |
tree | c89619835d2251871fb2b3cd59de939bef9e49af /include/net/act_api.h | |
parent | b233504033dbd65740e59681820ccfd0a2a8ec53 (diff) | |
download | op-kernel-dev-eec94fdb04806790c7b7e6ea347820064cc6d467.zip op-kernel-dev-eec94fdb04806790c7b7e6ea347820064cc6d467.tar.gz |
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 5ff11ad..ffc3ef3 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 |