Home
last modified time | relevance | path

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

/Linux-v6.6/Documentation/bpf/
Dlinux-notes.rst55 ``BPF_IND | <size> | BPF_LD``.
60 and ``BPF_IND`` access packet data at an offset that includes the value of
82 ``BPF_IND | BPF_W | BPF_LD`` (0x40) means::
Dclassic_vs_extended.rst372 BPF_IND 0x40
/Linux-v6.6/tools/bpf/
Dbpf_exp.y124 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_IND, 0, 0, $5); }
126 bpf_set_curr_instr(BPF_LD | BPF_B | BPF_IND, 0, 0, $6); }
136 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_IND, 0, 0, $5); }
138 bpf_set_curr_instr(BPF_LD | BPF_H | BPF_IND, 0, 0, $6); }
164 bpf_set_curr_instr(BPF_LD | BPF_W | BPF_IND, 0, 0, $5); }
166 bpf_set_curr_instr(BPF_LD | BPF_W | BPF_IND, 0, 0, $6); }
Dbpf_dbg.c267 case BPF_LD_W | BPF_IND: in bpf_disasm()
271 case BPF_LD_H | BPF_IND: in bpf_disasm()
275 case BPF_LD_B | BPF_IND: in bpf_disasm()
685 case BPF_LD_W | BPF_IND: in bpf_single_step()
690 case BPF_LD_H | BPF_IND: in bpf_single_step()
697 case BPF_LD_B | BPF_IND: in bpf_single_step()
/Linux-v6.6/tools/include/uapi/linux/
Dbpf_common.h25 #define BPF_IND 0x40 macro
/Linux-v6.6/include/uapi/linux/
Dbpf_common.h25 #define BPF_IND 0x40 macro
/Linux-v6.6/lib/
Dtest_bpf.c3076 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 1),
3166 BPF_STMT(BPF_LD | BPF_H | BPF_IND, MAX_K),
3203 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
3230 BPF_STMT(BPF_LD | BPF_B | BPF_IND, 0),
3549 BPF_STMT(BPF_LD | BPF_B | BPF_IND, MAX_K),
3575 BPF_STMT(BPF_LD | BPF_W | BPF_IND, 0),
3617 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 14),
3619 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 16),
3656 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 14),
3658 BPF_STMT(BPF_LD | BPF_H | BPF_IND, 16),
[all …]
/Linux-v6.6/arch/sparc/net/
Dbpf_jit_comp_32.c611 case BPF_LD | BPF_W | BPF_IND: in bpf_jit_compile()
626 case BPF_LD | BPF_H | BPF_IND: in bpf_jit_compile()
629 case BPF_LD | BPF_B | BPF_IND: in bpf_jit_compile()
/Linux-v6.6/tools/include/linux/
Dfilter.h146 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/
Dmain.h416 (BPF_MODE(code) == BPF_ABS || BPF_MODE(code) == BPF_IND); in is_mbpf_classic_load()
Djit.c3473 [BPF_LD | BPF_IND | BPF_B] = data_ind_ld1,
3474 [BPF_LD | BPF_IND | BPF_H] = data_ind_ld2,
3475 [BPF_LD | BPF_IND | BPF_W] = data_ind_ld4,
3976 BPF_MODE(insn.code) != BPF_IND) in nfp_bpf_opt_ld_mask()
4011 BPF_MODE(insn.code) != BPF_IND) in nfp_bpf_opt_ld_shift()
/Linux-v6.6/tools/testing/selftests/bpf/
Ddisasm.c278 } else if (BPF_MODE(insn->code) == BPF_IND) { in print_bpf_insn()
/Linux-v6.6/kernel/bpf/
Ddisasm.c278 } else if (BPF_MODE(insn->code) == BPF_IND) { in print_bpf_insn()
Dcore.c1643 [BPF_LD | BPF_IND | BPF_B] = true, in bpf_opcode_in_insntable()
1644 [BPF_LD | BPF_IND | BPF_H] = true, in bpf_opcode_in_insntable()
1645 [BPF_LD | BPF_IND | BPF_W] = true, in bpf_opcode_in_insntable()
Dverifier.c2853 (BPF_MODE(code) == BPF_ABS || BPF_MODE(code) == BPF_IND)) in check_subprogs()
3659 if (mode == BPF_IND || mode == BPF_ABS) in backtrack_insn()
14450 if (mode == BPF_IND) { in check_ld_abs()
16746 if (mode == BPF_ABS || mode == BPF_IND) { in do_check()
18385 BPF_MODE(insn->code) == BPF_IND)) { in do_misc_fixups()
/Linux-v6.6/net/core/
Dfilter.c476 bool indirect = BPF_MODE(fp->code) == BPF_IND; in convert_bpf_ld_abs()
652 case BPF_LD | BPF_IND | BPF_W: in bpf_convert_filter()
653 case BPF_LD | BPF_IND | BPF_H: in bpf_convert_filter()
654 case BPF_LD | BPF_IND | BPF_B: in bpf_convert_filter()
994 [BPF_LD | BPF_W | BPF_IND] = true, in chk_code_allowed()
995 [BPF_LD | BPF_H | BPF_IND] = true, in chk_code_allowed()
996 [BPF_LD | BPF_B | BPF_IND] = true, in chk_code_allowed()
8743 bool indirect = BPF_MODE(orig->code) == BPF_IND; in bpf_gen_ld_abs()
/Linux-v6.6/include/linux/
Dfilter.h250 .code = BPF_LD | BPF_SIZE(SIZE) | BPF_IND, \
/Linux-v6.6/Documentation/bpf/standardization/
Dinstruction-set.rst433BPF_IND 0x40 legacy BPF packet access (indirect) `Legacy BPF Packet access instructions…