Re: [PATCH bpf-next 2/4] samples: bpf: refactor BPF map in map test with libbpf

2020-07-02 Thread Daniel T. Lee
On Thu, Jul 2, 2020 at 1:26 PM Andrii Nakryiko wrote: > > On Wed, Jul 1, 2020 at 7:17 PM Daniel T. Lee wrote: > > > > From commit 646f02ffdd49 ("libbpf: Add BTF-defined map-in-map > > support"), a way to define internal map in BTF-defined map has been > > added. > > > > Instead of using previous

Re: [PATCH bpf-next 2/4] samples: bpf: refactor BPF map in map test with libbpf

2020-07-01 Thread Andrii Nakryiko
On Wed, Jul 1, 2020 at 7:17 PM Daniel T. Lee wrote: > > From commit 646f02ffdd49 ("libbpf: Add BTF-defined map-in-map > support"), a way to define internal map in BTF-defined map has been > added. > > Instead of using previous 'inner_map_idx' definition, the structure to > be used for the inner ma

[PATCH bpf-next 2/4] samples: bpf: refactor BPF map in map test with libbpf

2020-07-01 Thread Daniel T. Lee
>From commit 646f02ffdd49 ("libbpf: Add BTF-defined map-in-map support"), a way to define internal map in BTF-defined map has been added. Instead of using previous 'inner_map_idx' definition, the structure to be used for the inner map can be directly defined using array directive. __array(val