Home
last modified time | relevance | path

Searched refs:bpf_ops (Results 1 - 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/net/sched/
H A Dact_bpf.c26 struct sock_filter *bpf_ops; member
95 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
111 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
188 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local
198 bpf_size = bpf_num_ops * sizeof(*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()
203 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()
207 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()
211 kfree(bpf_ops); in tcf_bpf_init_from_ops()
215 cfg->bpf_ops in tcf_bpf_init_from_ops()
[all...]
H A Dcls_bpf.c47 struct sock_filter *bpf_ops; member
141 return !prog->bpf_ops; in cls_bpf_is_ebpf()
265 kfree(prog->bpf_ops); in cls_bpf_free_parms()
340 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local
350 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
354 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
355 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()
359 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()
363 kfree(bpf_ops); in cls_bpf_prog_from_ops()
367 prog->bpf_ops in cls_bpf_prog_from_ops()
[all...]
/kernel/linux/linux-6.6/net/sched/
H A Dact_bpf.c27 struct sock_filter *bpf_ops; member
96 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
112 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
189 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local
199 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in tcf_bpf_init_from_ops()
203 bpf_ops = kmemdup(nla_data(tb[TCA_ACT_BPF_OPS]), bpf_size, GFP_KERNEL); in tcf_bpf_init_from_ops()
204 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()
208 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()
212 kfree(bpf_ops); in tcf_bpf_init_from_ops()
216 cfg->bpf_ops in tcf_bpf_init_from_ops()
[all...]
H A Dcls_bpf.c48 struct sock_filter *bpf_ops; member
142 return !prog->bpf_ops; in cls_bpf_is_ebpf()
266 kfree(prog->bpf_ops); in cls_bpf_free_parms()
341 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local
351 bpf_size = bpf_num_ops * sizeof(*bpf_ops); in cls_bpf_prog_from_ops()
355 bpf_ops = kmemdup(nla_data(tb[TCA_BPF_OPS]), bpf_size, GFP_KERNEL); in cls_bpf_prog_from_ops()
356 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()
360 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()
364 kfree(bpf_ops); in cls_bpf_prog_from_ops()
368 prog->bpf_ops in cls_bpf_prog_from_ops()
[all...]
/kernel/linux/linux-5.10/include/net/tc_act/
H A Dtc_bpf.h19 struct sock_filter *bpf_ops; member
/kernel/linux/linux-6.6/include/net/tc_act/
H A Dtc_bpf.h19 struct sock_filter *bpf_ops; member

Completed in 4 milliseconds