MIPS: BPF: Add JIT support for SKF_AD_HATYPE.
authorDavid Daney <david.daney@cavium.com>
Tue, 14 Mar 2017 21:21:41 +0000 (14:21 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 10 Apr 2017 09:56:04 +0000 (11:56 +0200)
commit4ad701532a758202a422a8588f4d09c058c9a5dc
tree066761923302d96ac2595e04a60dce906249e820
parentbfbfa9d61cf29f3579107892c7347c02d891dfec
MIPS: BPF: Add JIT support for SKF_AD_HATYPE.

This let's us pass some additional "modprobe test-bpf" tests with JIT
enabled.

Reuse the code for SKF_AD_IFINDEX, but substitute the offset and size
of the "type" field.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Steven J. Hill <steven.hill@cavium.com>
Cc: linux-mips@linux-mips.org
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15744/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/net/bpf_jit.c