Re: [PATCH RFC v2 net-next 05/16] bpf: introduce syscall(BPF, ...) and BPF maps

2014-07-23 Thread Alexei Starovoitov
On Wed, Jul 23, 2014 at 11:02 AM, Kees Cook wrote: >> --- a/Documentation/networking/filter.txt >> +++ b/Documentation/networking/filter.txt >> >> +eBPF maps >> +- >> +'maps' is a generic storage of different types for sharing data between >> kernel >> +and userspace. >> + >> +The maps ar

Re: [PATCH RFC v2 net-next 05/16] bpf: introduce syscall(BPF, ...) and BPF maps

2014-07-23 Thread Kees Cook
On Thu, Jul 17, 2014 at 9:19 PM, Alexei Starovoitov wrote: > BPF syscall is a demux for different BPF releated commands. > > 'maps' is a generic storage of different types for sharing data between kernel > and userspace. > > The maps can be created from user space via BPF syscall: > - create a map

[PATCH RFC v2 net-next 05/16] bpf: introduce syscall(BPF, ...) and BPF maps

2014-07-17 Thread Alexei Starovoitov
BPF syscall is a demux for different BPF releated commands. 'maps' is a generic storage of different types for sharing data between kernel and userspace. The maps can be created from user space via BPF syscall: - create a map with given type and attributes fd = bpf_map_create(map_type, struct n