mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
a09d5c52c4
commit
1266f5d655
|
@ -2142,6 +2142,9 @@ static void nfp_bpf_opt_ld_mask(struct nfp_prog *nfp_prog)
|
|||
if (next.src_reg || next.dst_reg)
|
||||
continue;
|
||||
|
||||
if (meta2->flags & FLAG_INSN_IS_JUMP_DST)
|
||||
continue;
|
||||
|
||||
meta2->skip = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue