summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/net/Makefile
diff options
context:
space:
mode:
authorNaveen N. Rao2016-06-22 18:25:07 +0200
committerMichael Ellerman2016-06-24 07:17:57 +0200
commit156d0e290e969caba25f1851c52417c14d141b24 (patch)
treea232dcd99242656e3e935e44d0fa6649618f58ba /arch/powerpc/net/Makefile
parentpowerpc/bpf/jit: Isolate classic BPF JIT specifics into a separate header (diff)
downloadkernel-qcow2-linux-156d0e290e969caba25f1851c52417c14d141b24.tar.gz
kernel-qcow2-linux-156d0e290e969caba25f1851c52417c14d141b24.tar.xz
kernel-qcow2-linux-156d0e290e969caba25f1851c52417c14d141b24.zip
powerpc/ebpf/jit: Implement JIT compiler for extended BPF
PPC64 eBPF JIT compiler. Enable with: echo 1 > /proc/sys/net/core/bpf_jit_enable or echo 2 > /proc/sys/net/core/bpf_jit_enable ... to see the generated JIT code. This can further be processed with tools/net/bpf_jit_disasm. With CONFIG_TEST_BPF=m and 'modprobe test_bpf': test_bpf: Summary: 305 PASSED, 0 FAILED, [297/297 JIT'ed] ... on both ppc64 BE and LE. The details of the approach are documented through various comments in the code. Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/net/Makefile')
-rw-r--r--arch/powerpc/net/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/net/Makefile b/arch/powerpc/net/Makefile
index 1306a58ac541..c1ff16a6eb51 100644
--- a/arch/powerpc/net/Makefile
+++ b/arch/powerpc/net/Makefile
@@ -1,4 +1,8 @@
#
# Arch-specific network modules
#
+ifeq ($(CONFIG_PPC64),y)
+obj-$(CONFIG_BPF_JIT) += bpf_jit_asm64.o bpf_jit_comp64.o
+else
obj-$(CONFIG_BPF_JIT) += bpf_jit_asm.o bpf_jit_comp.o
+endif