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 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()
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_ACCOUNT); 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...]
/linux/io_uring/
H A Dbpf-ops.c169 if (ctx->bpf_ops) in io_install_bpf()
177 ctx->bpf_ops = ops; in io_install_bpf()
205 struct io_uring_bpf_ops *ops = ctx->bpf_ops; in io_eject_bpf()
213 ctx->bpf_ops = NULL; in io_eject_bpf()
226 if (WARN_ON_ONCE(ctx->bpf_ops != ops)) in bpf_io_unreg()
241 if (!ctx->bpf_ops) in io_unregister_bpf_ops()
247 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/fs/
H A Dbinfmt_misc.c113 const struct binfmt_misc_ops *bpf_ops; /* bpf-backed handler ('B') */ member
202 if (!e->bpf_ops->match(bprm)) in search_binfmt_handler()
357 if (e->bpf_ops) in bm_entry_free_rcu()
358 binfmt_misc_put_ops(e->bpf_ops); in bm_entry_free_rcu()
455 retval = e->bpf_ops->load(bprm); in entry_select_interpreter()
1070 seq_printf(m, "bpf %s\n", e->bpf_ops->name); in bm_entry_show()
1474 e->bpf_ops = binfmt_misc_get_ops(sb->s_user_ns, e->bpf_ops_name); in bm_register_write()
1475 if (!e->bpf_ops) { in bm_register_write()