Re: [PATCH 14/14] net: sched: implement delete for all actions

2018-05-19 Thread Marcelo Ricardo Leitner
On Wed, May 16, 2018 at 12:58:38PM +0300, Vlad Buslov wrote: > > On Wed 16 May 2018 at 09:48, Jiri Pirko wrote: > > Mon, May 14, 2018 at 04:27:15PM CEST, vla...@mellanox.com wrote: > >>Implement delete function that is required to delete actions without > >>holding rtnl lock. Use action API functi

Re: [PATCH 14/14] net: sched: implement delete for all actions

2018-05-16 Thread Vlad Buslov
On Wed 16 May 2018 at 09:48, Jiri Pirko wrote: > Mon, May 14, 2018 at 04:27:15PM CEST, vla...@mellanox.com wrote: >>Implement delete function that is required to delete actions without >>holding rtnl lock. Use action API function that atomically deletes action >>only if it is still in action idr.

Re: [PATCH 14/14] net: sched: implement delete for all actions

2018-05-16 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:15PM CEST, vla...@mellanox.com wrote: >Implement delete function that is required to delete actions without >holding rtnl lock. Use action API function that atomically deletes action >only if it is still in action idr. This implementation prevents concurrent >threads from

[PATCH 14/14] net: sched: implement delete for all actions

2018-05-14 Thread Vlad Buslov
Implement delete function that is required to delete actions without holding rtnl lock. Use action API function that atomically deletes action only if it is still in action idr. This implementation prevents concurrent threads from deleting same action twice. Signed-off-by: Vlad Buslov --- net/sc