Re: [PATCH bpf] bpf: hash_map: decrement counter on error

2018-07-03 Thread Daniel Borkmann
On 07/03/2018 10:28 PM, Alexei Starovoitov wrote: > On Sun, Jul 01, 2018 at 11:33:58AM -0500, Mauricio Vasquez wrote: >> On 06/30/2018 06:20 PM, Daniel Borkmann wrote: >>> On 06/29/2018 02:48 PM, Mauricio Vasquez B wrote: Decrement the number of elements in the map in case the allocation

Re: [PATCH bpf] bpf: hash_map: decrement counter on error

2018-07-03 Thread Alexei Starovoitov
On Sun, Jul 01, 2018 at 11:33:58AM -0500, Mauricio Vasquez wrote: > > On 06/30/2018 06:20 PM, Daniel Borkmann wrote: > > On 06/29/2018 02:48 PM, Mauricio Vasquez B wrote: > > > Decrement the number of elements in the map in case the allocation > > > of a new node fails. > > > > > > Signed-off-by:

Re: [PATCH bpf] bpf: hash_map: decrement counter on error

2018-07-01 Thread Mauricio Vasquez
On 06/30/2018 06:20 PM, Daniel Borkmann wrote: On 06/29/2018 02:48 PM, Mauricio Vasquez B wrote: Decrement the number of elements in the map in case the allocation of a new node fails. Signed-off-by: Mauricio Vasquez B Thanks for the fix, Mauricio! Could you reply with a Fixes: tag in orde

Re: [PATCH bpf] bpf: hash_map: decrement counter on error

2018-06-30 Thread Daniel Borkmann
On 06/29/2018 02:48 PM, Mauricio Vasquez B wrote: > Decrement the number of elements in the map in case the allocation > of a new node fails. > > Signed-off-by: Mauricio Vasquez B Thanks for the fix, Mauricio! Could you reply with a Fixes: tag in order to track the commit originally introducing

[PATCH bpf] bpf: hash_map: decrement counter on error

2018-06-29 Thread Mauricio Vasquez B
Decrement the number of elements in the map in case the allocation of a new node fails. Signed-off-by: Mauricio Vasquez B --- kernel/bpf/hashtab.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c index 3ca2198..513d