]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1c5fe02efccb13515612217d057f6ca4e2791b1
tree173c544e8134dcfae4572e8b2db5eed44cf122a8
parent09197f2a0bfc956366769532e503212526a1014b
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