Home
last modified time | relevance | path

Searched refs:old_fd (Results 1 – 5 of 5) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
A Dxdp_link.c12 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 Dxdp_attach.c15 .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 Dnetlink.c184 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 Dlibbpf_internal.h502 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 Dlibbpf.h693 int old_fd; member
696 #define bpf_xdp_set_link_opts__last_field old_fd

Completed in 12 milliseconds