Re: [PATCH bpf-next 05/13] bpf: adding map batch processing support

2019-08-29 Thread Alexei Starovoitov
On Fri, Aug 30, 2019 at 06:39:48AM +, Yonghong Song wrote: > > > > The problem happens when you are trying to do batch lookup on a > > hashmap and when executing bpf_map_get_next_key(map, key, next_key) > > the key is removed, then that call will return the first key and you'd > > start iterat

Re: [PATCH bpf-next 05/13] bpf: adding map batch processing support

2019-08-29 Thread Yonghong Song
On 8/29/19 4:01 PM, Brian Vazquez wrote: > Hi Yonghong! > > Thanks for sending this series of patches and starting the discussion. > > On Wed, Aug 28, 2019 at 11:45 PM Yonghong Song wrote: >> >> Brian Vazquez has proposed BPF_MAP_DUMP command to look up more than one >> map entries per syscall

Re: [PATCH bpf-next 05/13] bpf: adding map batch processing support

2019-08-29 Thread Brian Vazquez
Hi Yonghong! Thanks for sending this series of patches and starting the discussion. On Wed, Aug 28, 2019 at 11:45 PM Yonghong Song wrote: > > Brian Vazquez has proposed BPF_MAP_DUMP command to look up more than one > map entries per syscall. > > https://lore.kernel.org/bpf/cabcgpau3xxx6cmmxd+

[PATCH bpf-next 05/13] bpf: adding map batch processing support

2019-08-28 Thread Yonghong Song
Brian Vazquez has proposed BPF_MAP_DUMP command to look up more than one map entries per syscall. https://lore.kernel.org/bpf/cabcgpau3xxx6cmmxd+1knapivtc2jlbhysdxw-0e9bqel0q...@mail.gmail.com/T/#t During discussion, we found more use cases can be supported in a similar map operation batching f