Home
last modified time | relevance | path

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

/Linux-v4.19/include/linux/
Dfilter.h347 int bpf_size = -EINVAL; \
350 bpf_size = BPF_B; \
352 bpf_size = BPF_H; \
354 bpf_size = BPF_W; \
356 bpf_size = BPF_DW; \
358 bpf_size; \
361 #define bpf_size_to_bytes(bpf_size) \ argument
365 if (bpf_size == BPF_B) \
367 else if (bpf_size == BPF_H) \
369 else if (bpf_size == BPF_W) \
[all …]
/Linux-v4.19/net/sched/
Dact_bpf.c191 u16 bpf_size, bpf_num_ops; in tcf_bpf_init_from_ops() local
198 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
199 if (bpf_size != nla_len(tb[TCA_ACT_BPF_OPS])) in tcf_bpf_init_from_ops()
202 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
Dcls_bpf.c341 u16 bpf_size, bpf_num_ops; in cls_bpf_prog_from_ops() local
348 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
349 if (bpf_size != nla_len(tb[TCA_BPF_OPS])) in cls_bpf_prog_from_ops()
352 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
/Linux-v4.19/arch/x86/net/
Dbpf_jit_comp.c72 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument
74 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()
76 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
78 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
80 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
Dbpf_jit_comp32.c1394 static int bpf_size_to_x86_bytes(int bpf_size) in bpf_size_to_x86_bytes() argument
1396 if (bpf_size == BPF_W) in bpf_size_to_x86_bytes()
1398 else if (bpf_size == BPF_H) in bpf_size_to_x86_bytes()
1400 else if (bpf_size == BPF_B) in bpf_size_to_x86_bytes()
1402 else if (bpf_size == BPF_DW) in bpf_size_to_x86_bytes()
/Linux-v4.19/kernel/bpf/
Dverifier.c1675 int off, int bpf_size, enum bpf_access_type t, in check_mem_access() argument
1683 size = bpf_size_to_bytes(bpf_size); in check_mem_access()