Re: [PATCH bpf-next v4 00/13] bpf: implement bpf iterator for map elements

2020-07-23 Thread Alexei Starovoitov
On Thu, Jul 23, 2020 at 11:41:08AM -0700, Yonghong Song wrote: > Bpf iterator has been implemented for task, task_file, > bpf_map, ipv6_route, netlink, tcp and udp so far. > > For map elements, there are two ways to traverse all elements from > user space: > 1. using BPF_MAP_GET_NEXT_KEY bpf sub

[PATCH bpf-next v4 00/13] bpf: implement bpf iterator for map elements

2020-07-23 Thread Yonghong Song
Bpf iterator has been implemented for task, task_file, bpf_map, ipv6_route, netlink, tcp and udp so far. For map elements, there are two ways to traverse all elements from user space: 1. using BPF_MAP_GET_NEXT_KEY bpf subcommand to get elements one by one. 2. using BPF_MAP_LOOKUP_BATCH bp