]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: bpf: don't do ld/mask combination if mask is jump destination
authorJiong Wang <jiong.wang@netronome.com>
Fri, 1 Dec 2017 05:32:52 +0000 (21:32 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Dec 2017 19:59:20 +0000 (20:59 +0100)
commitab44f1ce3615ff6b7643bd881777fb06c081314e
tree44e6a3f3fa4ae97c649c500916b216dfff2aa6b0
parent3e3a405b3dad0fba427c076de08fa9ac1e0119d6
nfp: bpf: don't do ld/mask combination if mask is jump destination

If the mask insn in the ld/mask pair is jump destination, then don't do
combination.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/bpf/jit.c