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.c559 struct bpf_prog *replace_prog, in find_attach_entry() argument
572 if (prog && pl->prog == prog && prog != replace_prog) in find_attach_entry()
581 if (replace_prog) { in find_attach_entry()
583 if (pl->prog == replace_prog) in find_attach_entry()
626 if (link && (prog || replace_prog)) in __cgroup_bpf_attach()
629 if (!!replace_prog != !!(flags & BPF_F_REPLACE)) in __cgroup_bpf_attach()
1133 struct bpf_prog *replace_prog = NULL; in cgroup_bpf_prog_attach() local
1144 if (IS_ERR(replace_prog)) { in cgroup_bpf_prog_attach()
1146 return PTR_ERR(replace_prog); in cgroup_bpf_prog_attach()
1153 if (replace_prog) in cgroup_bpf_prog_attach()
[all …]