]> asedeno.scripts.mit.edu Git - linux.git/commit
MIPS: eBPF: Provide eBPF support for MIPS64R6
authorHassan Naveed <hnaveed@wavecomp.com>
Tue, 12 Mar 2019 22:48:06 +0000 (22:48 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 19 Mar 2019 22:26:08 +0000 (15:26 -0700)
commit6c2c8a18886897226ee43e77c0149a8e1874274a
tree2abf18905b92953ba76ae86bff01f56357fa7b06
parent0d1d17b9ff8e7d69b2169337b263822355404a86
MIPS: eBPF: Provide eBPF support for MIPS64R6

Currently eBPF support is available on MIPS64R2 only. Use MIPS64R6
variants of instructions like multiply, divide, movn, movz so eBPF
can run on the newer ISA. Also, we only need to check ISA revision
before JIT'ing code, because we know the CPU is running a 64-bit
kernel because eBPF JIT is only included in kernels with CONFIG_64BIT=y
due to Kconfig dependencies.

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/net/ebpf_jit.c