Searched refs:replace_prog (Results 1 – 3 of 3) sorted by relevance
/linux/kernel/bpf/ |
H A D | tcx.c | 15 struct bpf_prog *replace_prog = NULL; in tcx_prog_attach() local 26 replace_prog = bpf_prog_get_type(attr->replace_bpf_fd, in tcx_prog_attach() 28 if (IS_ERR(replace_prog)) { in tcx_prog_attach() 29 ret = PTR_ERR(replace_prog); in tcx_prog_attach() 30 replace_prog = NULL; in tcx_prog_attach() 39 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in tcx_prog_attach() 53 if (replace_prog) in tcx_prog_attach() 54 bpf_prog_put(replace_prog); in tcx_prog_attach()
|
H A D | cgroup.c | 576 struct bpf_prog *replace_prog, in find_attach_entry() argument 589 if (prog && pl->prog == prog && prog != replace_prog) in find_attach_entry() 598 if (replace_prog) { in find_attach_entry() 600 if (pl->prog == replace_prog) in find_attach_entry() 617 * @replace_prog: Previously attached program to replace if BPF_F_REPLACE is set 625 struct bpf_prog *prog, struct bpf_prog *replace_prog, in __cgroup_bpf_attach() argument 643 if (link && (prog || replace_prog)) in __cgroup_bpf_attach() 644 /* only either link or prog/replace_prog can be specified */ in __cgroup_bpf_attach() 646 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach() 647 /* replace_prog implie in __cgroup_bpf_attach() 742 cgroup_bpf_attach(struct cgroup * cgrp,struct bpf_prog * prog,struct bpf_prog * replace_prog,struct bpf_cgroup_link * link,enum bpf_attach_type type,u32 flags) cgroup_bpf_attach() argument 1150 struct bpf_prog *replace_prog = NULL; cgroup_bpf_prog_attach() local [all...] |
/linux/drivers/net/ |
H A D | netkit.c | 513 struct bpf_prog *replace_prog = NULL; in netkit_prog_attach() local 526 replace_prog = bpf_prog_get_type(attr->replace_bpf_fd, in netkit_prog_attach() 528 if (IS_ERR(replace_prog)) { in netkit_prog_attach() 529 ret = PTR_ERR(replace_prog); in netkit_prog_attach() 530 replace_prog = NULL; in netkit_prog_attach() 534 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in netkit_prog_attach() 545 if (replace_prog) in netkit_prog_attach() 546 bpf_prog_put(replace_prog); in netkit_prog_attach()
|