Re: [PATCH bpf-next 0/3] bpf: Populate bpffs with map and prog iterators

2020-07-04 Thread Toke Høiland-Jørgensen
Alexei Starovoitov writes: > On Fri, Jul 03, 2020 at 01:18:43PM +0200, Toke Høiland-Jørgensen wrote: >> > The user mode driver will load BPF Type Formats, create BPF maps, populate >> > BPF >> > maps, load two BPF programs, attach them to BPF iterators, and finally >> > send two >> > bpf_

Re: [PATCH bpf-next 0/3] bpf: Populate bpffs with map and prog iterators

2020-07-03 Thread Alexei Starovoitov
On Fri, Jul 03, 2020 at 01:18:43PM +0200, Toke Høiland-Jørgensen wrote: > > The user mode driver will load BPF Type Formats, create BPF maps, populate > > BPF > > maps, load two BPF programs, attach them to BPF iterators, and finally send > > two > > bpf_link IDs back to the kernel. > > The kerne

Re: [PATCH bpf-next 0/3] bpf: Populate bpffs with map and prog iterators

2020-07-03 Thread Toke Høiland-Jørgensen
> The user mode driver will load BPF Type Formats, create BPF maps, populate BPF > maps, load two BPF programs, attach them to BPF iterators, and finally send > two > bpf_link IDs back to the kernel. > The kernel will pin two bpf_links into newly mounted bpffs instance under > names "progs" and "m

[PATCH bpf-next 0/3] bpf: Populate bpffs with map and prog iterators

2020-07-02 Thread Alexei Starovoitov
From: Alexei Starovoitov Hi Linus, This patch set is the first real user of user moder driver facility. The general use case for user mode driver is to ship vmlinux with preloaded BPF programs. In this particular case the user mode driver populates bpffs instance with two BPF iterators. In sever