summaryrefslogtreecommitdiffstats
path: root/include/net/pkt_cls.h
diff options
context:
space:
mode:
authorVlad Buslov2019-02-11 09:55:39 +0100
committerDavid S. Miller2019-02-12 19:41:32 +0100
commit4dbfa766440c6dfe3d10f077cde966a7d11b58f1 (patch)
treedb3a6c5e2450ef0eae61879159ff64678b65fac7 /include/net/pkt_cls.h
parentnet: sched: protect filter_chain list with filter_chain_lock mutex (diff)
downloadkernel-qcow2-linux-4dbfa766440c6dfe3d10f077cde966a7d11b58f1.tar.gz
kernel-qcow2-linux-4dbfa766440c6dfe3d10f077cde966a7d11b58f1.tar.xz
kernel-qcow2-linux-4dbfa766440c6dfe3d10f077cde966a7d11b58f1.zip
net: sched: introduce reference counting for tcf_proto
In order to remove dependency on rtnl lock and allow concurrent tcf_proto modification, extend tcf_proto with reference counter. Implement helper get/put functions for tcf proto and use them to modify cls API to always take reference to tcf_proto while using it. Only release reference to parent chain after releasing last reference to tp. Signed-off-by: Vlad Buslov <vladbu@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_cls.h')
0 files changed, 0 insertions, 0 deletions