diff options
author | Johan Almbladh <johan.almbladh@anyfinetworks.com> | 2021-10-05 18:54:07 +0200 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-10-06 21:28:30 +0200 |
commit | 01bdc58e94b46b88d4921f46f423bdeb8b137f28 (patch) | |
tree | f921fb3ab7e45bb252e77768aba37986062830c6 /arch/mips/net | |
parent | mips, bpf: Add JIT workarounds for CPU errata (diff) | |
download | linux-01bdc58e94b46b88d4921f46f423bdeb8b137f28.tar.xz linux-01bdc58e94b46b88d4921f46f423bdeb8b137f28.zip |
mips, bpf: Enable eBPF JITs
This patch enables the new eBPF JITs for 32-bit and 64-bit MIPS. It also
disables the old cBPF JIT to so cBPF programs are converted to use the
new JIT.
Workarounds for R4000 CPU errata are not implemented by the JIT, so the
JIT is disabled if any of those workarounds are configured.
Signed-off-by: Johan Almbladh <johan.almbladh@anyfinetworks.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211005165408.2305108-7-johan.almbladh@anyfinetworks.com
Diffstat (limited to 'arch/mips/net')
-rw-r--r-- | arch/mips/net/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/net/Makefile b/arch/mips/net/Makefile index e057ee4ba75e..602bf242b13f 100644 --- a/arch/mips/net/Makefile +++ b/arch/mips/net/Makefile @@ -2,9 +2,10 @@ # MIPS networking code obj-$(CONFIG_MIPS_CBPF_JIT) += bpf_jit.o bpf_jit_asm.o +obj-$(CONFIG_MIPS_EBPF_JIT) += bpf_jit_comp.o ifeq ($(CONFIG_32BIT),y) - obj-$(CONFIG_MIPS_EBPF_JIT) += bpf_jit_comp.o bpf_jit_comp32.o + obj-$(CONFIG_MIPS_EBPF_JIT) += bpf_jit_comp32.o else - obj-$(CONFIG_MIPS_EBPF_JIT) += ebpf_jit.o + obj-$(CONFIG_MIPS_EBPF_JIT) += bpf_jit_comp64.o endif |