]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: eBPF: Initial eBPF support for MIPS32 architecture.
authorHassan Naveed <hnaveed@wavecomp.com>
Tue, 12 Mar 2019 22:48:12 +0000 (22:48 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 19 Mar 2019 22:26:12 +0000 (15:26 -0700)
commitca691bd0a8d773909da961d16c63f13c6df76d9e
tree735e881b1e7b2850df0030594ed073a99681d01a
parentca321c84f2cda90b646812b061379cb4803f465a
MIPS: eBPF: Initial eBPF support for MIPS32 architecture.

Currently MIPS32 supports a JIT for classic BPF only, not extended BPF.
This patch adds JIT support for extended BPF on MIPS32, so code is
actually JIT'ed instead of being only interpreted. Instructions with
64-bit operands are not supported at this point.
We can delete classic BPF because the kernel will translate classic BPF
programs into extended BPF and JIT them, eliminating the need for
classic BPF.

Signed-off-by: Hassan Naveed <hnaveed@wavecomp.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: kafai@fb.com
Cc: songliubraving@fb.com
Cc: yhs@fb.com
Cc: netdev@vger.kernel.org
Cc: bpf@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: open list:MIPS <linux-mips@linux-mips.org>
Cc: open list <linux-kernel@vger.kernel.org>
arch/mips/Kconfig
arch/mips/net/Makefile
arch/mips/net/bpf_jit.c [deleted file]
arch/mips/net/bpf_jit_asm.S [deleted file]
arch/mips/net/ebpf_jit.c