Home
last modified time | relevance | path

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

/Linux-v5.15/net/sched/
Dact_bpf.c26 struct sock_filter *bpf_ops; member
93 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
109 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
186 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local
196 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
200 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
201 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()
205 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()
209 kfree(bpf_ops); in tcf_bpf_init_from_ops()
213 cfg->bpf_ops = bpf_ops; in tcf_bpf_init_from_ops()
[all …]
Dcls_bpf.c47 struct sock_filter *bpf_ops; member
138 return !prog->bpf_ops; in cls_bpf_is_ebpf()
262 kfree(prog->bpf_ops); in cls_bpf_free_parms()
337 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local
347 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
351 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
352 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()
356 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()
360 kfree(bpf_ops); in cls_bpf_prog_from_ops()
364 prog->bpf_ops = bpf_ops; in cls_bpf_prog_from_ops()
[all …]
/Linux-v5.15/include/net/tc_act/
Dtc_bpf.h19 struct sock_filter *bpf_ops; member