MIPS,bpf: Cache value of BPF_OP(insn->code) in eBPF JIT.
authorDavid Daney <david.daney@cavium.com>
Fri, 18 Aug 2017 23:40:33 +0000 (16:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Aug 2017 17:31:34 +0000 (10:31 -0700)
commit6035b3faf3e58ee6eb423a45a1b7b7c3b4c8dc9f
tree173c544e8134dcfae4572e8b2db5eed44cf122a8
parenta67b375fdc5b21ae3a15761f9c5ef7bd352b5f7d
MIPS,bpf: Cache value of BPF_OP(insn->code) in eBPF JIT.

The code looks a little cleaner if we replace BPF_OP(insn->code) with
the local variable bpf_op.  Caching the value this way also saves 300
bytes (about 1%) in the code size of the JIT.

Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/mips/net/ebpf_jit.c