summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorVlad Buslov <vladbu@mellanox.com>2019-02-11 10:55:48 +0200
committerDavid S. Miller <davem@davemloft.net>2019-02-12 13:41:33 -0500
commit470502de5bdb1ed0def643a4458593a40b8f6b66 (patch)
tree429efc7780a59682e8be2fdc4f4e786f4727afd1 /include/linux
parent18d3eefb17cf1959bedb4f8cbb76b6aa05657776 (diff)
downloadcachepc-linux-470502de5bdb1ed0def643a4458593a40b8f6b66.tar.gz
cachepc-linux-470502de5bdb1ed0def643a4458593a40b8f6b66.zip
net: sched: unlock rules update API
Register netlink protocol handlers for message types RTM_NEWTFILTER, RTM_DELTFILTER, RTM_GETTFILTER as unlocked. Set rtnl_held variable that tracks rtnl mutex state to be false by default. Introduce tcf_proto_is_unlocked() helper that is used to check tcf_proto_ops->flag to determine if ops can be called without taking rtnl lock. Manually lookup Qdisc, class and block in rule update handlers. Verify that both Qdisc ops and proto ops are unlocked before using any of their callbacks, and obtain rtnl lock otherwise. 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/linux')
0 files changed, 0 insertions, 0 deletions