Searched refs:old_fd (Results 1 – 4 of 4) sorted by relevance
/tools/lib/bpf/ |
D | netlink.c | 134 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()
|
D | libbpf.h | 509 int old_fd; member 512 #define bpf_xdp_set_link_opts__last_field old_fd
|
/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_attach.c | 15 .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()
|
D | xdp_link.c | 12 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()
|