Lines Matching refs:ifindex
39 int ifindex; member
241 static int __bpf_set_link_xdp_fd_replace(int ifindex, int fd, int old_fd, in __bpf_set_link_xdp_fd_replace() argument
253 req.ifinfo.ifi_index = ifindex; in __bpf_set_link_xdp_fd_replace()
277 int bpf_xdp_attach(int ifindex, int prog_fd, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_attach() argument
290 err = __bpf_set_link_xdp_fd_replace(ifindex, prog_fd, old_prog_fd, flags); in bpf_xdp_attach()
294 int bpf_xdp_detach(int ifindex, __u32 flags, const struct bpf_xdp_attach_opts *opts) in bpf_xdp_detach() argument
296 return bpf_xdp_attach(ifindex, -1, flags, opts); in bpf_xdp_detach()
322 if (xdp_id->ifindex && xdp_id->ifindex != ifinfo->ifi_index) in get_xdp_info()
360 int bpf_xdp_query(int ifindex, int xdp_flags, struct bpf_xdp_query_opts *opts) in bpf_xdp_query() argument
382 xdp_id.ifindex = ifindex; in bpf_xdp_query()
399 int bpf_xdp_query_id(int ifindex, int flags, __u32 *prog_id) in bpf_xdp_query_id() argument
404 ret = bpf_xdp_query(ifindex, flags, &opts); in bpf_xdp_query_id()
490 req.tc.tcm_ifindex = OPTS_GET(hook, ifindex, 0); in tc_qdisc_modify()
514 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_create()
528 OPTS_GET(hook, ifindex, 0) <= 0) in bpf_tc_hook_destroy()
614 int ret, ifindex, attach_point, prog_fd; in bpf_tc_attach() local
624 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_attach()
634 if (ifindex <= 0 || !prog_fd || prog_id) in bpf_tc_attach()
650 req.tc.tcm_ifindex = ifindex; in bpf_tc_attach()
689 int ret, ifindex, attach_point, prog_fd; in __bpf_tc_detach() local
697 ifindex = OPTS_GET(hook, ifindex, 0); in __bpf_tc_detach()
707 if (ifindex <= 0 || flags || prog_fd || prog_id) in __bpf_tc_detach()
725 req.tc.tcm_ifindex = ifindex; in __bpf_tc_detach()
760 int ret, ifindex, attach_point, prog_fd; in bpf_tc_query() local
769 ifindex = OPTS_GET(hook, ifindex, 0); in bpf_tc_query()
779 if (ifindex <= 0 || flags || prog_fd || prog_id || in bpf_tc_query()
792 req.tc.tcm_ifindex = ifindex; in bpf_tc_query()