Searched refs:old_fd (Results 1 – 5 of 5) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | xdp_link.c | 12 DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, opts, .old_fd = -1); in serial_test_xdp_link() 57 opts.old_fd = prog_fd1; in serial_test_xdp_link() 63 opts.old_fd = prog_fd1; in serial_test_xdp_link() 81 opts.old_fd = prog_fd1; in serial_test_xdp_link()
|
A D | xdp_attach.c | 15 .old_fd = -1); in serial_test_xdp_attach() 56 opts.old_fd = fd1; in serial_test_xdp_attach() 73 opts.old_fd = fd2; in serial_test_xdp_attach()
|
/linux/tools/lib/bpf/ |
A D | netlink.c | 184 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd, in __bpf_set_link_xdp_fd_replace() argument 210 ret = nlattr_add(&req, IFLA_XDP_EXPECTED_FD, &old_fd, in __bpf_set_link_xdp_fd_replace() 211 sizeof(old_fd)); in __bpf_set_link_xdp_fd_replace() 223 int old_fd = -1, ret; in bpf_set_link_xdp_fd_opts() local 228 if (OPTS_HAS(opts, old_fd)) { in bpf_set_link_xdp_fd_opts() 229 old_fd = OPTS_GET(opts, old_fd, -1); in bpf_set_link_xdp_fd_opts() 233 ret = __bpf_set_link_xdp_fd_replace(ifindex, fd, old_fd, flags); in bpf_set_link_xdp_fd_opts()
|
A D | libbpf_internal.h | 502 int old_fd = fd, saved_errno; in ensure_good_fd() local 509 close(old_fd); in ensure_good_fd() 511 pr_warn("failed to dup FD %d to FD > 2: %d\n", old_fd, -saved_errno); in ensure_good_fd()
|
A D | libbpf.h | 693 int old_fd; member 696 #define bpf_xdp_set_link_opts__last_field old_fd
|
Completed in 12 milliseconds