Thu, Mar 21, 2019 at 02:17:33PM CET, vla...@mellanox.com wrote:
>Flower classifier only changes root pointer during init and destroy. Cls
>API implements reference counting for tcf_proto, so there is no danger of
>concurrent access to tp when it is being destroyed, even without protection
>provided by rtnl lock.
>
>Implement new function fl_head_dereference() to dereference tp->root
>without checking for rtnl lock. Use it in all flower function that obtain
>head pointer instead of rtnl_dereference().
>
>Signed-off-by: Vlad Buslov <vla...@mellanox.com>
>Reviewed-by: Stefano Brivio <sbri...@redhat.com>

Acked-by: Jiri Pirko <j...@mellanox.com>

Reply via email to