2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/arch/powerpc/net
Daniel Borkmann f8bbbfc3b9 net: filter: add jited flag to indicate jit compiled filters
This patch adds a jited flag into sk_filter struct in order to indicate
whether a filter is currently jited or not. The size of sk_filter is
not being expanded as the 32 bit 'len' member allows upper bits to be
reused since a filter can currently only grow as large as BPF_MAXINSNS.

Therefore, there's enough room also for other in future needed flags to
reuse 'len' field if necessary. The jited flag also allows for having
alternative interpreter functions running as currently, we can only
detect jit compiled filters by testing fp->bpf_func to not equal the
address of sk_run_filter().

Joint work with Alexei Starovoitov.

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-03-31 00:45:08 -04:00
..
bpf_jit_64.S powerpc/bpf: BPF JIT compiler for 64-bit Little Endian 2013-10-31 16:19:15 +11:00
bpf_jit_comp.c net: filter: add jited flag to indicate jit compiled filters 2014-03-31 00:45:08 -04:00
bpf_jit.h powerpc/bpf: Support MOD operation 2013-10-31 16:19:21 +11:00
Makefile net: filter: BPF 'JIT' compiler for PPC64 2011-07-21 12:38:32 -07:00