Searched refs:old_fd (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
| 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()
|
| 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()
|
| /Linux-v5.15/tools/lib/bpf/ |
| 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()
|
| D | libbpf.h | 588 int old_fd; member 591 #define bpf_xdp_set_link_opts__last_field old_fd
|