Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-29 Thread Yonghong Song
On 4/29/20 1:50 PM, Martin KaFai Lau wrote: On Wed, Apr 29, 2020 at 12:20:05PM -0700, Yonghong Song wrote: On 4/29/20 11:46 AM, Martin KaFai Lau wrote: On Wed, Apr 29, 2020 at 11:16:35AM -0700, Andrii Nakryiko wrote: On Wed, Apr 29, 2020 at 12:07 AM Yonghong Song wrote: On 4/28/20 11

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-29 Thread Martin KaFai Lau
On Wed, Apr 29, 2020 at 12:20:05PM -0700, Yonghong Song wrote: > > > On 4/29/20 11:46 AM, Martin KaFai Lau wrote: > > On Wed, Apr 29, 2020 at 11:16:35AM -0700, Andrii Nakryiko wrote: > > > On Wed, Apr 29, 2020 at 12:07 AM Yonghong Song wrote: > > > > > > > > > > > > > > > > On 4/28/20 11:56 P

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-29 Thread Andrii Nakryiko
On Mon, Apr 27, 2020 at 1:19 PM Yonghong Song wrote: > > A new bpf command BPF_ITER_CREATE is added. > > The anonymous bpf iterator is seq_file based. > The seq_file private data are referenced by targets. > The bpf_iter infrastructure allocated additional space > at seq_file->private after the sp

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-29 Thread Yonghong Song
On 4/29/20 11:46 AM, Martin KaFai Lau wrote: On Wed, Apr 29, 2020 at 11:16:35AM -0700, Andrii Nakryiko wrote: On Wed, Apr 29, 2020 at 12:07 AM Yonghong Song wrote: On 4/28/20 11:56 PM, Andrii Nakryiko wrote: On Mon, Apr 27, 2020 at 1:19 PM Yonghong Song wrote: A new bpf command BPF_I

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-29 Thread Martin KaFai Lau
On Wed, Apr 29, 2020 at 11:16:35AM -0700, Andrii Nakryiko wrote: > On Wed, Apr 29, 2020 at 12:07 AM Yonghong Song wrote: > > > > > > > > On 4/28/20 11:56 PM, Andrii Nakryiko wrote: > > > On Mon, Apr 27, 2020 at 1:19 PM Yonghong Song wrote: > > >> > > >> A new bpf command BPF_ITER_CREATE is added.

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-29 Thread Andrii Nakryiko
On Wed, Apr 29, 2020 at 12:07 AM Yonghong Song wrote: > > > > On 4/28/20 11:56 PM, Andrii Nakryiko wrote: > > On Mon, Apr 27, 2020 at 1:19 PM Yonghong Song wrote: > >> > >> A new bpf command BPF_ITER_CREATE is added. > >> > >> The anonymous bpf iterator is seq_file based. > >> The seq_file privat

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-29 Thread Yonghong Song
On 4/28/20 11:56 PM, Andrii Nakryiko wrote: On Mon, Apr 27, 2020 at 1:19 PM Yonghong Song wrote: A new bpf command BPF_ITER_CREATE is added. The anonymous bpf iterator is seq_file based. The seq_file private data are referenced by targets. The bpf_iter infrastructure allocated additional s

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-28 Thread Andrii Nakryiko
On Mon, Apr 27, 2020 at 1:19 PM Yonghong Song wrote: > > A new bpf command BPF_ITER_CREATE is added. > > The anonymous bpf iterator is seq_file based. > The seq_file private data are referenced by targets. > The bpf_iter infrastructure allocated additional space > at seq_file->private after the sp

Re: [PATCH bpf-next v1 07/19] bpf: create anonymous bpf iterator

2020-04-28 Thread Martin KaFai Lau
On Mon, Apr 27, 2020 at 01:12:42PM -0700, Yonghong Song wrote: > A new bpf command BPF_ITER_CREATE is added. > > The anonymous bpf iterator is seq_file based. > The seq_file private data are referenced by targets. > The bpf_iter infrastructure allocated additional space > at seq_file->private afte