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

2020-07-23 Thread Yonghong Song
On 7/22/20 11:53 PM, Alexei Starovoitov wrote: On Wed, Jul 22, 2020 at 11:15:33PM -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

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

2020-07-22 Thread Alexei Starovoitov
On Wed, Jul 22, 2020 at 11:15:33PM -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 v3 00/13] bpf: implement bpf iterator for map elements

2020-07-22 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