MIPS: Implement eBPF JIT.
From: | David Daney <david.daney-AT-cavium.com> | |
To: | Alexei Starovoitov <ast-AT-kernel.org>, Daniel Borkmann <daniel-AT-iogearbox.net>, netdev-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, linux-mips-AT-linux-mips.org, ralf-AT-linux-mips.org | |
Subject: | [PATCH 0/5] MIPS: Implement eBPF JIT. | |
Date: | Thu, 25 May 2017 17:38:21 -0700 | |
Message-ID: | <20170526003826.10834-1-david.daney@cavium.com> | |
Cc: | Markos Chandras <markos.chandras-AT-imgtec.com>, David Daney <david.daney-AT-cavium.com> |
The first four patches improve MIPS uasm in preparation for use by the JIT. The final patch is the eBPF JIT implementation. I am CCing netdev@ and the BPF maintainers for their comments, but would expect Ralf to merge via the MIPS tree if and when it all looks good. David Daney (5): MIPS: Optimize uasm insn lookup. MIPS: Correctly define DBSHFL type instruction opcodes. MIPS: Add some instructions to uasm. MIPS: Sort uasm enum opcode elements. MIPS: Add support for eBPF JIT. arch/mips/Kconfig | 1 + arch/mips/include/asm/uasm.h | 28 + arch/mips/include/uapi/asm/inst.h | 9 +- arch/mips/mm/uasm-micromips.c | 188 +++-- arch/mips/mm/uasm-mips.c | 236 +++--- arch/mips/mm/uasm.c | 59 +- arch/mips/net/bpf_jit.c | 1627 ++++++++++++++++++++++++++++++++++++- arch/mips/net/bpf_jit.h | 7 + 8 files changed, 1930 insertions(+), 225 deletions(-) -- 2.9.4