Re: [PATCH rfc v3 bpf-next 1/9] bpf: implement lookup-free direct value access for maps

2019-03-14 Thread Andrii Nakryiko
On Mon, Mar 11, 2019 at 2:51 PM Daniel Borkmann wrote: > > This generic extension to BPF maps allows for directly loading an > address residing inside a BPF map value as a single BPF ldimm64 > instruction. > > The idea is similar to what BPF_PSEUDO_MAP_FD does today, which > is a special src_reg f

[PATCH rfc v3 bpf-next 1/9] bpf: implement lookup-free direct value access for maps

2019-03-11 Thread Daniel Borkmann
This generic extension to BPF maps allows for directly loading an address residing inside a BPF map value as a single BPF ldimm64 instruction. The idea is similar to what BPF_PSEUDO_MAP_FD does today, which is a special src_reg flag for ldimm64 instruction that indicates that inside the first part