Re: [PATCH bpf-next v3 0/7] Implement queue/stack maps

2018-10-19 Thread Alexei Starovoitov
On Fri, Oct 19, 2018 at 10:08:08PM +0200, Daniel Borkmann wrote: > On 10/18/2018 03:16 PM, Mauricio Vasquez B wrote: > > In some applications this is needed have a pool of free elements, for > > example the list of free L4 ports in a SNAT. None of the current maps allow > > to do it as it is not p

Re: [PATCH bpf-next v3 0/7] Implement queue/stack maps

2018-10-19 Thread Daniel Borkmann
On 10/18/2018 03:16 PM, Mauricio Vasquez B wrote: > In some applications this is needed have a pool of free elements, for > example the list of free L4 ports in a SNAT. None of the current maps allow > to do it as it is not possible to get any element without having they key > it is associated to,

[PATCH bpf-next v3 0/7] Implement queue/stack maps

2018-10-18 Thread Mauricio Vasquez B
In some applications this is needed have a pool of free elements, for example the list of free L4 ports in a SNAT. None of the current maps allow to do it as it is not possible to get any element without having they key it is associated to, even if it were possible, the lack of locking mecanishms