[PATCH v2 0/5] MIPS: BPF: JIT fixes and improvements.

From: David Daney
Date: Tue Mar 14 2017 - 17:21:57 EST


Changes from v1:

- Use unsigned access for SKF_AD_HATYPE

- Added three more patches for other problems found.


Testing the BPF JIT on Cavium OCTEON (mips64) with the test-bpf module
identified some failures and unimplemented features.

With this patch set we get:

test_bpf: Summary: 305 PASSED, 0 FAILED, [85/297 JIT'ed]

Both big and little endian tested.

We still lack eBPF support, but this is better than nothing.

David Daney (5):
MIPS: uasm: Add support for LHU.
MIPS: BPF: Add JIT support for SKF_AD_HATYPE.
MIPS: BPF: Use unsigned access for unsigned SKB fields.
MIPS: BPF: Quit clobbering callee saved registers in JIT code.
MIPS: BPF: Fix multiple problems in JIT skb access helpers.

arch/mips/include/asm/uasm.h | 1 +
arch/mips/mm/uasm-mips.c | 1 +
arch/mips/mm/uasm.c | 3 ++-
arch/mips/net/bpf_jit.c | 41 +++++++++++++++++++++++++++++++----------
arch/mips/net/bpf_jit_asm.S | 23 ++++++++++++-----------
5 files changed, 47 insertions(+), 22 deletions(-)

--
2.9.3