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
@@ -781,6 +781,7 @@ struct tc_mqprio_qopt_offload {
|
||||
struct tc_cookie {
|
||||
u8 *data;
|
||||
u32 len;
|
||||
struct rcu_head rcu;
|
||||
};
|
||||
|
||||
struct tc_qopt_offload_stats {
|
||||
|
Reference in New Issue
Block a user