MIPS: BPF: Fix multiple problems in JIT skb access helpers.
authorDavid Daney <david.daney@cavium.com>
Tue, 14 Mar 2017 21:21:44 +0000 (14:21 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 10 Apr 2017 09:56:05 +0000 (11:56 +0200)
commita81507c79f4ae9a0f9fb1054b59b62a090620dd9
tree3bd166e7d9f43ca19db0e52e8be29dcb2426d111
parent1ef0910cfd681f0bd0b81f8809935b2006e9cfb9
MIPS: BPF: Fix multiple problems in JIT skb access helpers.

o Socket data is unsigned, so use unsigned accessors instructions.

 o Fix path result pointer generation arithmetic.

 o Fix half-word byte swapping code for unsigned semantics.

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/15747/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/net/bpf_jit_asm.S