]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: x86: Factor out a lookup table for some ALU opcodes
authorBrendan Jackman <jackmanb@google.com>
Thu, 14 Jan 2021 18:17:43 +0000 (18:17 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 15 Jan 2021 02:34:28 +0000 (18:34 -0800)
commit07dbd24de73986a2dc62216f970392f4cb42da45
tree15667b52f0e208f3777fbf0973899d785685fa07
parent902bf3bd4b837165907c121de638c92453fb96bc
bpf: x86: Factor out a lookup table for some ALU opcodes

A later commit will need to lookup a subset of these opcodes. To
avoid duplicating code, pull out a table.

The shift opcodes won't be needed by that later commit, but they're
already duplicated, so fold them into the table anyway.

Signed-off-by: Brendan Jackman <jackmanb@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20210114181751.768687-4-jackmanb@google.com
arch/x86/net/bpf_jit_comp.c