Re: [PATCH bpf 1/3] bpf: add map_lookup_elem_sys_only for lookups from syscall side

2019-05-14 Thread Andrii Nakryiko
On Tue, May 14, 2019 at 12:59 AM Daniel Borkmann wrote: > > On 05/14/2019 07:04 AM, Andrii Nakryiko wrote: > > On Mon, May 13, 2019 at 4:20 PM Daniel Borkmann > > wrote: > >> > >> Add a callback map_lookup_elem_sys_only() that map implementations > >> could use over map_lookup_elem() from system

Re: [PATCH bpf 1/3] bpf: add map_lookup_elem_sys_only for lookups from syscall side

2019-05-14 Thread Daniel Borkmann
On 05/14/2019 07:04 AM, Andrii Nakryiko wrote: > On Mon, May 13, 2019 at 4:20 PM Daniel Borkmann wrote: >> >> Add a callback map_lookup_elem_sys_only() that map implementations >> could use over map_lookup_elem() from system call side in case the >> map implementation needs to handle the latter di

Re: [PATCH bpf 1/3] bpf: add map_lookup_elem_sys_only for lookups from syscall side

2019-05-13 Thread Andrii Nakryiko
On Mon, May 13, 2019 at 4:20 PM Daniel Borkmann wrote: > > Add a callback map_lookup_elem_sys_only() that map implementations > could use over map_lookup_elem() from system call side in case the > map implementation needs to handle the latter differently than from > the BPF data path. If map_looku

[PATCH bpf 1/3] bpf: add map_lookup_elem_sys_only for lookups from syscall side

2019-05-13 Thread Daniel Borkmann
Add a callback map_lookup_elem_sys_only() that map implementations could use over map_lookup_elem() from system call side in case the map implementation needs to handle the latter differently than from the BPF data path. If map_lookup_elem_sys_only() is set, this will be preferred pick for map look