Home
last modified time | relevance | path

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

/linux/net/sched/
H A Dact_bpf.c190 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local
197 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
198 if (bpf_size != nla_len(tb[TCA_ACT_BPF_OPS])) in tcf_bpf_init_from_ops()
201 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
H A Dcls_bpf.c342 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local
349 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
350 if (bpf_size != nla_len(tb[TCA_BPF_OPS])) in cls_bpf_prog_from_ops()
353 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
/linux/include/linux/
H A Dfilter.h527 int bpf_size = -EINVAL; \
530 bpf_size = BPF_B; \
532 bpf_size = BPF_H; \
534 bpf_size = BPF_W; \
536 bpf_size = BPF_DW; \
538 bpf_size; \
541 #define bpf_size_to_bytes(bpf_size) \ argument
545 if (bpf_size == BPF_B) \
547 else if (bpf_size == BPF_H) \
549 else if (bpf_size == BPF_W) \
[all …]
/linux/arch/x86/net/
H A Dbpf_jit_comp32.c1172 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument
1174 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()
1176 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
1178 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
1180 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
/linux/tools/perf/util/
H A Ddso.c867 static int bpf_size(struct dso *dso) in bpf_size() function
1139 return bpf_size(dso); in dso__data_file_size()
/linux/kernel/bpf/
H A Dverifier.c7529 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument
7536 size = bpf_size_to_bytes(bpf_size); in check_mem_access()
7601 if (bpf_size != BPF_DW) { in check_mem_access()