Home
last modified time | relevance | path

Searched refs:ins_chk (Results 1 – 1 of 1) sorted by relevance

/f-stack/dpdk/lib/librte_bpf/
H A Dbpf_validate.c1129 static const struct bpf_ins_check ins_chk[UINT8_MAX + 1] = { variable
1738 if (ins_chk[op].mask.dreg == 0) in check_syntax()
1741 if ((ins_chk[op].mask.dreg & 1 << ins->dst_reg) == 0) in check_syntax()
1744 if ((ins_chk[op].mask.sreg & 1 << ins->src_reg) == 0) in check_syntax()
1748 if (ins_chk[op].off.min > off || ins_chk[op].off.max < off) in check_syntax()
1752 if (ins_chk[op].imm.min > imm || ins_chk[op].imm.max < imm) in check_syntax()
1755 if (ins_chk[op].check != NULL) in check_syntax()
1756 return ins_chk[op].check(ins); in check_syntax()
2258 if (ins_chk[op].eval != NULL && rc == 0) { in evaluate()
2259 err = ins_chk[op].eval(bvf, ins + idx); in evaluate()