Lines Matching refs:prog
10 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_prog_attach() argument
27 prog->type); in tcx_prog_attach()
39 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in tcx_prog_attach()
59 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_prog_detach() argument
78 ret = bpf_mprog_detach(entry, &entry_new, prog, NULL, attr->attach_flags, in tcx_prog_detach()
115 bpf_prog_put(tuple.prog); in tcx_uninstall()
154 ret = bpf_mprog_attach(entry, &entry_new, link->prog, link, NULL, flags, in tcx_link_prog_attach()
186 ret = bpf_mprog_detach(entry, &entry_new, link->prog, link, 0, 0, 0); in tcx_link_release()
218 if (oprog && link->prog != oprog) { in tcx_link_update()
222 oprog = link->prog; in tcx_link_update()
234 link->prog->aux->id, 0); in tcx_link_update()
237 oprog = xchg(&link->prog, nprog); in tcx_link_update()
302 struct bpf_prog *prog) in tcx_link_init() argument
304 bpf_link_init(&tcx->link, BPF_LINK_TYPE_TCX, &tcx_link_lops, prog, in tcx_link_init()
310 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) in tcx_link_attach() argument
329 ret = tcx_link_init(tcx, &link_primer, attr, dev, prog); in tcx_link_attach()