Lines Matching refs:ifindex
31 int ifindex; member
184 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd, in __bpf_set_link_xdp_fd_replace() argument
196 req.ifinfo.ifi_index = ifindex; in __bpf_set_link_xdp_fd_replace()
220 int bpf_set_link_xdp_fd_opts(int ifindex, int fd, __u32 flags, in bpf_set_link_xdp_fd_opts() argument
233 ret = __bpf_set_link_xdp_fd_replace(ifindex, fd, old_fd, flags); in bpf_set_link_xdp_fd_opts()
237 int bpf_set_link_xdp_fd(int ifindex, int fd, __u32 flags) in bpf_set_link_xdp_fd() argument
241 ret = __bpf_set_link_xdp_fd_replace(ifindex, fd, 0, flags); in bpf_set_link_xdp_fd()
268 if (xdp_id->ifindex && xdp_id->ifindex != ifinfo->ifi_index) in get_xdp_info()
306 int bpf_get_link_xdp_info(int ifindex, struct xdp_link_info *info, in bpf_get_link_xdp_info() argument
328 xdp_id.ifindex = ifindex; in bpf_get_link_xdp_info()
359 int bpf_get_link_xdp_id(int ifindex, __u32 *prog_id, __u32 flags) in bpf_get_link_xdp_id() argument
364 ret = bpf_get_link_xdp_info(ifindex, &info, sizeof(info), flags); in bpf_get_link_xdp_id()
436 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify()
460 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create()
474 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy()
559 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local
569 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_attach()
579 if (ifindex <= 0 || !prog_fd || prog_id) in bpf_tc_attach()
595 req.tc.tcm_ifindex = ifindex; in bpf_tc_attach()
634 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local
642 ifindex = OPTS_GET(hook, ifindex, 0); in __bpf_tc_detach()
652 if (ifindex <= 0 || flags || prog_fd || prog_id) in __bpf_tc_detach()
670 req.tc.tcm_ifindex = ifindex; in __bpf_tc_detach()
705 int ret, ifindex, attach_point, prog_fd; in bpf_tc_query() local
714 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_query()
724 if (ifindex <= 0 || flags || prog_fd || prog_id || in bpf_tc_query()
737 req.tc.tcm_ifindex = ifindex; in bpf_tc_query()