Home
last modified time | relevance | path

Searched refs:old_prog_fd (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dflow_dissector_reattach.c273 update_opts.old_prog_fd = 0; in test_link_update_no_old_prog()
298 update_opts.old_prog_fd = prog1; in test_link_update_replace_old_prog()
323 update_opts.old_prog_fd = 0; in test_link_update_same_prog()
349 update_opts.old_prog_fd = prog1; in test_link_update_invalid_opts()
360 update_opts.old_prog_fd = prog2; in test_link_update_invalid_opts()
371 update_opts.old_prog_fd = -1; in test_link_update_invalid_opts()
382 update_opts.old_prog_fd = 0; in test_link_update_invalid_opts()
409 update_opts.old_prog_fd = 0; in test_link_update_invalid_prog()
424 update_opts.old_prog_fd = 0; in test_link_update_invalid_prog()
465 update_opts.old_prog_fd = 0; in test_link_update_netns_gone()
[all …]
Dxdp_link.c58 opts.old_prog_fd = prog_fd1; in serial_test_xdp_link()
64 opts.old_prog_fd = prog_fd1; in serial_test_xdp_link()
81 opts.old_prog_fd = prog_fd1; in serial_test_xdp_link()
Dxdp_attach.c53 opts.old_prog_fd = fd1; in serial_test_xdp_attach()
70 opts.old_prog_fd = fd2; in serial_test_xdp_attach()
Dcgroup_link.c186 link_upd_opts.old_prog_fd = bpf_program__fd(skel->progs.egress_alt); in serial_test_cgroup_link()
196 link_upd_opts.old_prog_fd = bpf_program__fd(skel->progs.egress); in serial_test_cgroup_link()
Dlsm_cgroup.c152 update_opts.old_prog_fd = bind_prog_fd; in test_lsm_cgroup_functional()
/linux-6.1.9/tools/lib/bpf/
Dnetlink.c279 int old_prog_fd, err; in bpf_xdp_attach() local
284 old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_xdp_attach()
285 if (old_prog_fd) in bpf_xdp_attach()
288 old_prog_fd = -1; in bpf_xdp_attach()
290 err = __bpf_set_link_xdp_fd_replace(ifindex, prog_fd, old_prog_fd, flags); in bpf_xdp_attach()
Dbpf.h338 __u32 old_prog_fd; /* expected old program FD */ member
340 #define bpf_link_update_opts__last_field old_prog_fd
Dlibbpf.h948 int old_prog_fd; member
951 #define bpf_xdp_attach_opts__last_field old_prog_fd
Dbpf.c801 attr.link_update.old_prog_fd = OPTS_GET(opts, old_prog_fd, 0); in bpf_link_update()
/linux-6.1.9/samples/bpf/
Dxdp_fwd_user.c94 opts.old_prog_fd = prog_fd; in do_detach()
/linux-6.1.9/tools/testing/selftests/bpf/
Dxdp_synproxy.c56 opts.old_prog_fd = prog_fd; in cleanup()
/linux-6.1.9/tools/include/uapi/linux/
Dbpf.h1543 __u32 old_prog_fd; member
/linux-6.1.9/include/uapi/linux/
Dbpf.h1543 __u32 old_prog_fd; member
/linux-6.1.9/kernel/bpf/
Dsyscall.c4623 #define BPF_LINK_UPDATE_LAST_FIELD link_update.old_prog_fd
4650 old_prog = bpf_prog_get(attr->link_update.old_prog_fd); in link_update()
4656 } else if (attr->link_update.old_prog_fd) { in link_update()