[PATCH 02/14] net: sched: change type of reference and bind counters

2018-05-14 Thread Vlad Buslov
Change type of action reference counter to refcount_t. Change type of action bind counter to atomic_t. This type is used to allow decrementing bind counter without testing for 0 result. Signed-off-by: Vlad Buslov --- include/net/act_api.h | 5 +++-- net/sched/act_api.c| 32 +++

Re: [PATCH 02/14] net: sched: change type of reference and bind counters

2018-05-14 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:03PM CEST, vla...@mellanox.com wrote: >Change type of action reference counter to refcount_t. > >Change type of action bind counter to atomic_t. >This type is used to allow decrementing bind counter without testing >for 0 result. > >Signed-off-by: Vlad Buslov Signed-off

Re: [PATCH 02/14] net: sched: change type of reference and bind counters

2018-05-19 Thread Marcelo Ricardo Leitner
On Mon, May 14, 2018 at 05:27:03PM +0300, Vlad Buslov wrote: > Change type of action reference counter to refcount_t. > > Change type of action bind counter to atomic_t. > This type is used to allow decrementing bind counter without testing > for 0 result. ... and in what does not testing for 0 re

Re: [PATCH 02/14] net: sched: change type of reference and bind counters

2018-05-20 Thread Vlad Buslov
On Sat 19 May 2018 at 21:04, Marcelo Ricardo Leitner wrote: > On Mon, May 14, 2018 at 05:27:03PM +0300, Vlad Buslov wrote: >> Change type of action reference counter to refcount_t. >> >> Change type of action bind counter to atomic_t. >> This type is used to allow decrementing bind counter witho