Home
last modified time | relevance | path

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

/net/core/
Dsock_reuseport.c330 struct bpf_prog *old_prog; in reuseport_attach_prog() local
345 old_prog = rcu_dereference_protected(reuse->prog, in reuseport_attach_prog()
350 sk_reuseport_prog_free(old_prog); in reuseport_attach_prog()
358 struct bpf_prog *old_prog; in reuseport_detach_prog() local
363 old_prog = NULL; in reuseport_detach_prog()
367 old_prog = rcu_replace_pointer(reuse->prog, old_prog, in reuseport_detach_prog()
371 if (!old_prog) in reuseport_detach_prog()
374 sk_reuseport_prog_free(old_prog); in reuseport_detach_prog()
Ddev.c9154 struct bpf_prog *old_prog, u32 flags) in dev_xdp_attach() argument
9165 if (link && (new_prog || old_prog)) in dev_xdp_attach()
9184 if (old_prog && !(flags & XDP_FLAGS_REPLACE)) { in dev_xdp_attach()
9202 if ((flags & XDP_FLAGS_REPLACE) && cur_prog != old_prog) { in dev_xdp_attach()
9347 struct bpf_prog *old_prog) in bpf_xdp_link_update() argument
9362 if (old_prog && link->prog != old_prog) { in bpf_xdp_link_update()
9366 old_prog = link->prog; in bpf_xdp_link_update()
9367 if (old_prog->type != new_prog->type || in bpf_xdp_link_update()
9368 old_prog->expected_attach_type != new_prog->expected_attach_type) { in bpf_xdp_link_update()
9373 if (old_prog == new_prog) { in bpf_xdp_link_update()
[all …]
Dfilter.c1240 struct sock_filter *old_prog; in bpf_migrate_filter() local
1257 old_prog = kmemdup(fp->insns, old_len * sizeof(struct sock_filter), in bpf_migrate_filter()
1259 if (!old_prog) { in bpf_migrate_filter()
1265 err = bpf_convert_filter(old_prog, old_len, NULL, &new_len, in bpf_migrate_filter()
1285 err = bpf_convert_filter(old_prog, old_len, fp, &new_len, in bpf_migrate_filter()
1299 kfree(old_prog); in bpf_migrate_filter()
1303 kfree(old_prog); in bpf_migrate_filter()