]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
nfp: bpf: don't do ld/shifts combination if shifts are jump destination
authorJiong Wang <jiong.wang@netronome.com>
Fri, 1 Dec 2017 05:32:53 +0000 (21:32 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 1 Dec 2017 19:59:20 +0000 (20:59 +0100)
commit29fe46efba5c3e1ac0f857a03a29f6bf0d0c5592
tree7fd071ab984451140e6c07c16f0ba52fc77111ad
parent1266f5d6559e30e9afdebfff60d60ab86a8da77b
nfp: bpf: don't do ld/shifts combination if shifts are jump destination

If any of the shift insns in the ld/shift sequence is jump destination,
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