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>
This commit is contained in:

committed by
David S. Miller

parent
b233504033
commit
eec94fdb04
@@ -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
|
||||
|
Reference in New Issue
Block a user