Home
last modified time | relevance | path

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

/tools/lib/bpf/
Dnetlink.c134 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd, in __bpf_set_link_xdp_fd_replace() argument
184 nla_xdp->nla_len = NLA_HDRLEN + sizeof(old_fd); in __bpf_set_link_xdp_fd_replace()
185 memcpy((char *)nla_xdp + NLA_HDRLEN, &old_fd, sizeof(old_fd)); in __bpf_set_link_xdp_fd_replace()
205 int old_fd = -1; in bpf_set_link_xdp_fd_opts() local
210 if (OPTS_HAS(opts, old_fd)) { in bpf_set_link_xdp_fd_opts()
211 old_fd = OPTS_GET(opts, old_fd, -1); in bpf_set_link_xdp_fd_opts()
216 old_fd, in bpf_set_link_xdp_fd_opts()
Dlibbpf.h509 int old_fd; member
512 #define bpf_xdp_set_link_opts__last_field old_fd
/tools/testing/selftests/bpf/prog_tests/
Dxdp_attach.c15 .old_fd = -1); in test_xdp_attach()
56 opts.old_fd = fd1; in test_xdp_attach()
73 opts.old_fd = fd2; in test_xdp_attach()
Dxdp_link.c12 DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, opts, .old_fd = -1); in test_xdp_link()
57 opts.old_fd = prog_fd1; in test_xdp_link()
63 opts.old_fd = prog_fd1; in test_xdp_link()
81 opts.old_fd = prog_fd1; in test_xdp_link()