Mon, Feb 04, 2019 at 01:33:01PM CET, vla...@mellanox.com wrote: >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 <vla...@mellanox.com>
Acked-by: Jiri Pirko <j...@mellanox.com>