Searched refs:replace_prog (Results 1 – 2 of 2) sorted by relevance
| /linux/kernel/bpf/ |
| H A D | tcx.c | 15 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()
|
| /linux/drivers/net/ |
| H A D | netkit.c | 532 struct bpf_prog *replace_prog = NULL; in netkit_prog_attach() 545 replace_prog = bpf_prog_get_type(attr->replace_bpf_fd, in netkit_prog_attach() 547 if (IS_ERR(replace_prog)) { in netkit_prog_attach() 548 ret = PTR_ERR(replace_prog); in netkit_prog_attach() 549 replace_prog = NULL; in netkit_prog_attach() 553 ret = bpf_mprog_attach(entry, &entry_new, prog, NULL, replace_prog, in netkit_prog_attach() 564 if (replace_prog) in netkit_prog_attach() 565 bpf_prog_put(replace_prog); in netkit_prog_attach() 530 struct bpf_prog *replace_prog = NULL; netkit_prog_attach() local
|