Home
last modified time | relevance | path

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

/linux/net/sched/
H A Dact_bpf.c27 struct sock_filter *bpf_ops; member
94 return !prog->bpf_ops; in tcf_bpf_is_ebpf()
110 memcpy(nla_data(nla), prog->bpf_ops, nla_len(nla)); in tcf_bpf_dump_bpf_info()
187 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops() local
197 bpf_size = bpf_num_ops * sizeof(*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()
202 if (bpf_ops == NULL) in tcf_bpf_init_from_ops()
206 fprog_tmp.filter = bpf_ops; in tcf_bpf_init_from_ops()
210 kfree(bpf_ops); in tcf_bpf_init_from_ops()
214 cfg->bpf_ops = bpf_ops; in tcf_bpf_init_from_ops()
[all …]
H A Dcls_bpf.c48 struct sock_filter *bpf_ops; member
140 return !prog->bpf_ops; in cls_bpf_is_ebpf()
264 kfree(prog->bpf_ops); in cls_bpf_free_parms()
339 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() local
349 bpf_size = bpf_num_ops * sizeof(*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()
354 if (bpf_ops == NULL) in cls_bpf_prog_from_ops()
358 fprog_tmp.filter = bpf_ops; in cls_bpf_prog_from_ops()
362 kfree(bpf_ops); in cls_bpf_prog_from_ops()
366 prog->bpf_ops = bpf_ops; in cls_bpf_prog_from_ops()
[all …]
/linux/io_uring/
H A Dbpf-ops.c166 if (ctx->bpf_ops) in io_install_bpf()
172 ctx->bpf_ops = ops; in io_install_bpf()
200 struct io_uring_bpf_ops *ops = ctx->bpf_ops; in io_eject_bpf()
208 ctx->bpf_ops = NULL; in io_eject_bpf()
221 if (WARN_ON_ONCE(ctx->bpf_ops != ops)) in bpf_io_unreg()
236 if (!ctx->bpf_ops) in io_unregister_bpf_ops()
242 if (ctx->bpf_ops) in io_unregister_bpf_ops()
/linux/include/net/tc_act/
H A Dtc_bpf.h19 struct sock_filter *bpf_ops; member
/linux/include/linux/
H A Dio_uring_types.h494 struct io_uring_bpf_ops *bpf_ops; member