aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/net/Makefile
diff options
context:
space:
mode:
authorMircea Gherzan <mgherzan@gmail.com>2012-03-16 13:37:12 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-03-24 09:38:56 +0000
commitddecdfcea0ae891f782ae853771c867ab51024c2 (patch)
treebf344a86217258b88425834ef513585d71f58861 /arch/arm/net/Makefile
parentARM: 7334/1: add jump label support (diff)
downloadlinux-dev-ddecdfcea0ae891f782ae853771c867ab51024c2.tar.xz
linux-dev-ddecdfcea0ae891f782ae853771c867ab51024c2.zip
ARM: 7259/3: net: JIT compiler for packet filters
Based of Matt Evans's PPC64 implementation. The compiler generates ARM instructions but interworking is supported for Thumb2 kernels. Supports both little and big endian. Unaligned loads are emitted for ARMv6+. Not all the BPF opcodes that deal with ancillary data are supported. The scratch memory of the filter lives on the stack. Hardware integer division is used if it is available. Enabled in the same way as for x86-64 and PPC64: echo 1 > /proc/sys/net/core/bpf_jit_enable A value greater than 1 enables opcode output. Signed-off-by: Mircea Gherzan <mgherzan@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/net/Makefile')
-rw-r--r--arch/arm/net/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/net/Makefile b/arch/arm/net/Makefile
new file mode 100644
index 000000000000..c2c10841b6be
--- /dev/null
+++ b/arch/arm/net/Makefile
@@ -0,0 +1,3 @@
+# ARM-specific networking code
+
+obj-$(CONFIG_BPF_JIT) += bpf_jit_32.o