Thu, Mar 21, 2019 at 02:17:35PM CET, vla...@mellanox.com wrote:
>Extend flower filters with reference counting in order to remove dependency
>on rtnl lock in flower ops and allow to modify filters concurrently.
>Reference to flower filter can be taken/released concurrently as soon as it
>is marked as 'unlocked' by last patch in this series. Use atomic reference
>counter type to make concurrent modifications safe.
>
>Always take reference to flower filter while working with it:
>- Modify fl_get() to take reference to filter.
>- Implement tp->put() callback as fl_put() function to allow cls API to
>release reference taken by fl_get().
>- Modify fl_change() to assume that caller holds reference to fold and take
>reference to fnew.
>- Take reference to filter while using it in fl_walk().
>
>Implement helper functions to get/put filter reference counter.
>
>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