net: sched: use Qdisc rcu API instead of relying on rtnl lock
authorVlad Buslov <vladbu@mellanox.com>
Mon, 24 Sep 2018 16:22:53 +0000 (19:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 03:17:36 +0000 (20:17 -0700)
commitb67d22e89d3685c5b2df7338d4abba41dc03f764
tree18efb2d077e930a9b7829ed151f208e2345badf6
parenta855d665fc1c159260a572611a87635e19dba1ca
net: sched: use Qdisc rcu API instead of relying on rtnl lock

As a preparation from removing rtnl lock dependency from rules update path,
use Qdisc rcu and reference counting capabilities instead of relying on
rtnl lock while working with Qdiscs. Create new tcf_block_release()
function, and use it to free resources taken by tcf_block_find().
Currently, this function only releases Qdisc and it is extended in next
patches in this series.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_api.c