]> git.baikalelectronics.ru Git - kernel.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)
commitca321c84f2cda90b646812b061379cb4803f465a
tree2abf18905b92953ba76ae86bff01f56357fa7b06
parentad570a590f7026968832c60cc2a168375c09b213
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