Lines Matching refs:ifindex

33 	int	ifindex;  member
58 int ifindex; member
220 static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex, in netlink_get_class() argument
231 .t.tcm_ifindex = ifindex, in netlink_get_class()
259 static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex, in netlink_get_qdisc() argument
270 .t.tcm_ifindex = ifindex, in netlink_get_qdisc()
298 static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle, in netlink_get_filter() argument
309 .t.tcm_ifindex = ifindex, in netlink_get_filter()
376 netinfo->devices[netinfo->used_len].ifindex = ifinfo->ifi_index; in dump_link_nlmsg()
427 filter_info->devname, filter_info->ifindex); in dump_filter_nlmsg()
467 ret = bpf_prog_query_opts(dev->ifindex, loc, &optq); in __show_dev_tc_bpf()
473 NET_DUMP_UINT("ifindex", "(%u)", dev->ifindex); in __show_dev_tc_bpf()
523 ret = netlink_get_class(sock, nl_pid, dev->ifindex, in show_dev_tc_bpf_classic()
529 ret = netlink_get_qdisc(sock, nl_pid, dev->ifindex, in show_dev_tc_bpf_classic()
535 filter_info.ifindex = dev->ifindex; in show_dev_tc_bpf_classic()
538 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, in show_dev_tc_bpf_classic()
548 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle, in show_dev_tc_bpf_classic()
555 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle, in show_dev_tc_bpf_classic()
562 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle, in show_dev_tc_bpf_classic()
610 int ifindex; in net_parse_dev() local
615 ifindex = if_nametoindex(**argv); in net_parse_dev()
616 if (!ifindex) in net_parse_dev()
625 return ifindex; in net_parse_dev()
629 int ifindex, bool overwrite) in do_attach_detach_xdp() argument
642 return bpf_xdp_attach(ifindex, progfd, flags, NULL); in do_attach_detach_xdp()
648 int progfd, ifindex, err = 0; in do_attach() local
666 ifindex = net_parse_dev(&argc, &argv); in do_attach()
667 if (ifindex < 1) { in do_attach()
684 err = do_attach_detach_xdp(progfd, attach_type, ifindex, in do_attach()
702 int progfd, ifindex, err = 0; in do_detach() local
715 ifindex = net_parse_dev(&argc, &argv); in do_detach()
716 if (ifindex < 1) in do_detach()
722 err = do_attach_detach_xdp(progfd, attach_type, ifindex, NULL); in do_detach()