Lines Matching refs:ifindex

40 	int ifindex;  member
47 int ifindex; member
286 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd, in __bpf_set_link_xdp_fd_replace() argument
298 req.ifinfo.ifi_index = ifindex; in __bpf_set_link_xdp_fd_replace()
322 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_attach() argument
335 err = __bpf_set_link_xdp_fd_replace(ifindex, prog_fd, old_prog_fd, flags); in bpf_xdp_attach()
339 int bpf_xdp_detach(int ifindex, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_detach() argument
341 return bpf_xdp_attach(ifindex, -1, flags, opts); in bpf_xdp_detach()
367 if (xdp_id->ifindex && xdp_id->ifindex != ifinfo->ifi_index) in get_xdp_info()
412 __u32 ifindex; in parse_xdp_features() local
420 ifindex = libbpf_nla_getattr_u32(tb[NETDEV_A_DEV_IFINDEX]); in parse_xdp_features()
421 if (ifindex != md->ifindex) in parse_xdp_features()
431 int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts) in bpf_xdp_query() argument
441 .ifindex = ifindex, in bpf_xdp_query()
457 xdp_id.ifindex = ifindex; in bpf_xdp_query()
490 err = nlattr_add(&req, NETDEV_A_DEV_IFINDEX, &ifindex, sizeof(ifindex)); in bpf_xdp_query()
506 int bpf_xdp_query_id(int ifindex, int flags, __u32 *prog_id) in bpf_xdp_query_id() argument
511 ret = bpf_xdp_query(ifindex, flags, &opts); in bpf_xdp_query_id()
597 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify()
621 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create()
635 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy()
721 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local
731 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_attach()
741 if (ifindex <= 0 || !prog_fd || prog_id) in bpf_tc_attach()
757 req.tc.tcm_ifindex = ifindex; in bpf_tc_attach()
797 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local
805 ifindex = OPTS_GET(hook, ifindex, 0); in __bpf_tc_detach()
815 if (ifindex <= 0 || flags || prog_fd || prog_id) in __bpf_tc_detach()
833 req.tc.tcm_ifindex = ifindex; in __bpf_tc_detach()
868 int ret, ifindex, attach_point, prog_fd; in bpf_tc_query() local
877 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_query()
887 if (ifindex <= 0 || flags || prog_fd || prog_id || in bpf_tc_query()
900 req.tc.tcm_ifindex = ifindex; in bpf_tc_query()