Re: [PATCH bpf-next] samples: bpf: refactor xdp_sample_pkts_kern with BTF-defined map

2020-09-08 Thread Daniel T. Lee
On Wed, Sep 9, 2020 at 8:24 AM Andrii Nakryiko wrote: > > On Sat, Sep 5, 2020 at 8:41 AM Daniel T. Lee wrote: > > > > Most of the samples were converted to use the new BTF-defined MAP as > > they moved to libbbpf, but some of the samples were missing. > > > > Instead of using the previous BPF MAP

Re: [PATCH bpf-next] samples: bpf: refactor xdp_sample_pkts_kern with BTF-defined map

2020-09-08 Thread Andrii Nakryiko
On Sat, Sep 5, 2020 at 8:41 AM Daniel T. Lee wrote: > > Most of the samples were converted to use the new BTF-defined MAP as > they moved to libbbpf, but some of the samples were missing. > > Instead of using the previous BPF MAP definition, this commit refactors > xdp_sample_pkts_kern MAP definit

Re: [PATCH bpf-next] samples: bpf: refactor xdp_sample_pkts_kern with BTF-defined map

2020-09-07 Thread Daniel T. Lee
On Mon, Sep 7, 2020 at 10:02 PM Michal Rostecki wrote: > > Daniel T. Lee writes: > > Most of the samples were converted to use the new BTF-defined MAP as > > they moved to libbbpf, but some of the samples were missing. > > > > Instead of using the previous BPF MAP definition, this commit refactors

[PATCH bpf-next] samples: bpf: refactor xdp_sample_pkts_kern with BTF-defined map

2020-09-05 Thread Daniel T. Lee
Most of the samples were converted to use the new BTF-defined MAP as they moved to libbbpf, but some of the samples were missing. Instead of using the previous BPF MAP definition, this commit refactors xdp_sample_pkts_kern MAP definition with the new BTF-defined MAP format. Signed-off-by: Daniel