summaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2018-07-05 16:24:23 +0200
committerDavid S. Miller <davem@davemloft.net>2018-07-08 05:42:28 +0200
commiteec94fdb04806790c7b7e6ea347820064cc6d467 (patch)
treec89619835d2251871fb2b3cd59de939bef9e49af /include/net/pkt_cls.h
parentopenvswitch: kernel datapath clone action (diff)
downloadlinux-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/pkt_cls.h')
-rw-r--r--include/net/pkt_cls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h
index 6641584b27f1..2081e4219f81 100644
--- a/include/net/pkt_cls.h
+++ b/include/net/pkt_cls.h
@@ -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 {