kernel_optimize_test/arch
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
..
alpha
arc ARC: Use correct PTAG register for icache flush 2014-03-07 10:12:56 -08:00
arm net: filter: add jited flag to indicate jit compiled filters 2014-03-31 00:45:08 -04:00
arm64 Three x86 fixes and one for ARM/ARM64. In particular, nested 2014-02-28 11:45:03 -08:00
avr32 avr32: add generic vga.h to Kbuild 2014-02-17 11:24:48 +01:00
blackfin
c6x Build fix for c6x 2014-03-07 09:52:46 -08:00
cris cris: convert ffs from an object-like macro to a function-like macro 2014-03-10 17:26:21 -07:00
frv
hexagon
ia64 mm: fix GFP_THISNODE callers and clarify 2014-03-10 17:26:19 -07:00
m32r
m68k m68k: Wire up sched_setattr and sched_getattr 2014-02-10 20:10:20 +01:00
metag
microblaze microblaze: Fix a typo when disabling stack protection 2014-02-10 07:44:11 +01:00
mips MIPS: Make local_irq_disable macro safe for non-Mipsr2 2014-03-20 13:46:15 +01:00
mn10300
openrisc
parisc parisc: locks: remove redundant arch_*_relax operations 2014-03-23 17:01:23 +01:00
powerpc net: filter: add jited flag to indicate jit compiled filters 2014-03-31 00:45:08 -04:00
s390 net: filter: add jited flag to indicate jit compiled filters 2014-03-31 00:45:08 -04:00
score
sh sh: prefix sh-specific "CCR" and "CCR2" by "SH_" 2014-03-04 07:55:49 -08:00
sparc net: filter: add jited flag to indicate jit compiled filters 2014-03-31 00:45:08 -04:00
tile
um uml/net_kern: Call dev_consume_skb_any instead of dev_kfree_skb. 2014-03-24 15:13:35 -07:00
unicore32
x86 net: filter: add jited flag to indicate jit compiled filters 2014-03-31 00:45:08 -04:00
xtensa Xtensa fixes for 3.14: 2014-02-24 00:34:36 -08:00
.gitignore
Kconfig