Lines Matching full:ifindex
40 int ifindex;
47 int ifindex;
286 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd,
298 req.ifinfo.ifi_index = ifindex;
322 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts)
335 err = __bpf_set_link_xdp_fd_replace(ifindex, prog_fd, old_prog_fd, flags);
339 int bpf_xdp_detach(int ifindex, __u32 flags, const struct bpf_xdp_attach_opts *opts)
341 return bpf_xdp_attach(ifindex, -1, flags, opts);
367 if (xdp_id->ifindex && xdp_id->ifindex != ifinfo->ifi_index)
412 __u32 ifindex;
420 ifindex = libbpf_nla_getattr_u32(tb[NETDEV_A_DEV_IFINDEX]);
421 if (ifindex != md->ifindex)
431 int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts)
441 .ifindex = ifindex,
457 xdp_id.ifindex = ifindex;
490 err = nlattr_add(&req, NETDEV_A_DEV_IFINDEX, &ifindex, sizeof(ifindex));
506 int bpf_xdp_query_id(int ifindex, int flags, __u32 *prog_id)
511 ret = bpf_xdp_query(ifindex, flags, &opts);
610 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0);
634 OPTS_GET(hook, ifindex, 0) <= 0)
648 OPTS_GET(hook, ifindex, 0) <= 0)
735 int ret, ifindex, attach_point, prog_fd;
745 ifindex = OPTS_GET(hook, ifindex, 0);
755 if (ifindex <= 0 || !prog_fd || prog_id)
771 req.tc.tcm_ifindex = ifindex;
811 int ret, ifindex, attach_point, prog_fd;
819 ifindex = OPTS_GET(hook, ifindex, 0);
829 if (ifindex <= 0 || flags || prog_fd || prog_id)
847 req.tc.tcm_ifindex = ifindex;
882 int ret, ifindex, attach_point, prog_fd;
891 ifindex = OPTS_GET(hook, ifindex, 0);
901 if (ifindex <= 0 || flags || prog_fd || prog_id ||
914 req.tc.tcm_ifindex = ifindex;