Re: [PATCH v3 06/11] net: sched: add 'delete' function to action ops

2018-05-28 Thread Marcelo Ricardo Leitner
On Mon, May 28, 2018 at 12:17:24AM +0300, Vlad Buslov wrote: > Extend action ops with 'delete' function. Each action type to implements > its own delete function that doesn't depend on rtnl lock. > > Implement delete function that is required to delete actions without > holding rtnl lock. Use

Re: [PATCH v3 06/11] net: sched: add 'delete' function to action ops

2018-05-28 Thread Jiri Pirko
Sun, May 27, 2018 at 11:17:24PM CEST, vla...@mellanox.com wrote: >Extend action ops with 'delete' function. Each action type to implements >its own delete function that doesn't depend on rtnl lock. > >Implement delete function that is required to delete actions without >holding rtnl lock. Use

[PATCH v3 06/11] net: sched: add 'delete' function to action ops

2018-05-27 Thread Vlad Buslov
Extend action ops with 'delete' function. Each action type to implements its own delete function that doesn't depend on rtnl lock. 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