Home
last modified time | relevance | path

Searched refs:replace_prog (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/kernel/bpf/
H A Dtcx.c15 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 Dcgroup.c576 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()
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()
646 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach()
669 pl = find_attach_entry(progs, prog, link, replace_prog, in __cgroup_bpf_attach()
742 struct bpf_prog *prog, struct bpf_prog *replace_prog, in cgroup_bpf_attach() argument
750 ret = __cgroup_bpf_attach(cgrp, prog, replace_prog, link, type, flags); in cgroup_bpf_attach()
[all …]