Re: [RFC PATCH net-next 1/6] filter: refactor BPF JIT for seccomp filters

2013-04-26 Thread Eric Dumazet
On Fri, 2013-04-26 at 03:51 -0400, Xi Wang wrote: > Currently, bpf_jit_compile() and bpf_jit_free() takes an sk_filter, > which seccomp filters cannot reuse. > > Change bpf_jit_compile() to take a pointer to BPF instructions and > the length, and to return a JITted function. > > Change bpf_jit_fr

[RFC PATCH net-next 1/6] filter: refactor BPF JIT for seccomp filters

2013-04-26 Thread Xi Wang
Currently, bpf_jit_compile() and bpf_jit_free() takes an sk_filter, which seccomp filters cannot reuse. Change bpf_jit_compile() to take a pointer to BPF instructions and the length, and to return a JITted function. Change bpf_jit_free() to take a JITted function. Add JIT calls for seccomp filte