Home
last modified time | relevance | path

Searched refs:oprog (Results 1 – 3 of 3) sorted by relevance

/linux/kernel/bpf/
H A Dtcx.c204 struct bpf_prog *oprog) in tcx_link_update() argument
218 if (oprog && link->prog != oprog) { in tcx_link_update()
222 oprog = link->prog; in tcx_link_update()
223 if (oprog == nprog) { in tcx_link_update()
232 ret = bpf_mprog_attach(entry, &entry_new, nprog, link, oprog, in tcx_link_update()
237 oprog = xchg(&link->prog, nprog); in tcx_link_update()
238 bpf_prog_put(oprog); in tcx_link_update()
H A Dmprog.c114 struct bpf_prog *oprog; in bpf_mprog_replace() local
117 oprog = READ_ONCE(fp->prog); in bpf_mprog_replace()
121 bpf_prog_put(oprog); in bpf_mprog_replace()
/linux/drivers/net/
H A Dnetkit.c660 struct bpf_prog *oprog) in netkit_link_update() argument
673 if (oprog && link->prog != oprog) { in netkit_link_update()
677 oprog = link->prog; in netkit_link_update()
678 if (oprog == nprog) { in netkit_link_update()
687 ret = bpf_mprog_attach(entry, &entry_new, nprog, link, oprog, in netkit_link_update()
692 oprog = xchg(&link->prog, nprog); in netkit_link_update()
693 bpf_prog_put(oprog); in netkit_link_update()