Lines Matching refs:entry_new

512 	struct bpf_mprog_entry *entry, *entry_new;  in netkit_prog_attach()  local
534 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in netkit_prog_attach()
538 if (entry != entry_new) { in netkit_prog_attach()
539 netkit_entry_update(dev, entry_new); in netkit_prog_attach()
553 struct bpf_mprog_entry *entry, *entry_new; in netkit_prog_detach() local
569 ret = bpf_mprog_detach(entry, &entry_new, prog, NULL, attr->attach_flags, in netkit_prog_detach()
572 if (!bpf_mprog_total(entry_new)) in netkit_prog_detach()
573 entry_new = NULL; in netkit_prog_detach()
574 netkit_entry_update(dev, entry_new); in netkit_prog_detach()
611 struct bpf_mprog_entry *entry, *entry_new; in netkit_link_prog_attach() local
617 ret = bpf_mprog_attach(entry, &entry_new, link->prog, link, NULL, flags, in netkit_link_prog_attach()
620 if (entry != entry_new) { in netkit_link_prog_attach()
621 netkit_entry_update(dev, entry_new); in netkit_link_prog_attach()
632 struct bpf_mprog_entry *entry, *entry_new; in netkit_link_release() local
645 ret = bpf_mprog_detach(entry, &entry_new, link->prog, link, 0, 0, 0); in netkit_link_release()
647 if (!bpf_mprog_total(entry_new)) in netkit_link_release()
648 entry_new = NULL; in netkit_link_release()
649 netkit_entry_update(dev, entry_new); in netkit_link_release()
663 struct bpf_mprog_entry *entry, *entry_new; in netkit_link_update() local
687 ret = bpf_mprog_attach(entry, &entry_new, nprog, link, oprog, in netkit_link_update()
691 WARN_ON_ONCE(entry != entry_new); in netkit_link_update()