On 19/05/17 15:55, Alexei Starovoitov wrote: > On 5/19/17 7:21 AM, Edward Cree wrote: >> I'm currently translating the algos to C. But for the kernel patch, >> I'll need to read & understand the existing verifier code, so it >> might take a while :) (I don't suppose there's any design document >> or hacking-notes you could point me at?) > > Dave just gave a good overview of the verifier: > https://www.spinics.net/lists/xdp-newbies/msg00185.html > > Few more details in > Documentation/networking/filter.txt > and in top comments in kernel/bpf/verifier.c > > General bpf arch overview: > http://docs.cilium.io/en/latest/bpf/#instruction-set Thanks for the links! I'm digging into implementation now. One question: is there a way to build the verifier as userland code (or at least as a module), or will I have to reboot every time I want to test a change? -Ed
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as ceiling for ... David Miller
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as ceiling... Alexei Starovoitov
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as ceiling... Edward Cree
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as ceiling for ... Alexei Starovoitov
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as ceiling... Edward Cree
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as cei... Edward Cree
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as cei... Edward Cree
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as cei... Alexei Starovoitov
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as cei... Edward Cree
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as cei... Alexei Starovoitov
- Re: [PATCH v2 1/3] bpf: Use 1<<16 as cei... Edward Cree
- Alignment in BPF verifier Edward Cree
- Re: Alignment in BPF verifier David Miller
- Re: Alignment in BPF verifier Daniel Borkmann
- Re: Alignment in BPF verifier Edward Cree
- Re: Alignment in BPF verifier Edward Cree
- Re: Alignment in BPF verifier Alexei Starovoitov
- Re: Alignment in BPF verifier Alexei Starovoitov
- Re: Alignment in BPF verifier Daniel Borkmann
- Re: Alignment in BPF verifier Edward Cree
- Re: Alignment in BPF verifier Alexei Starovoitov