Lines Matching refs:ifindex
25 static int get_vendor_id(int ifindex) in get_vendor_id() argument
31 if (!if_indextoname(ifindex, ifname)) in get_vendor_id()
69 size_t insns_cnt, char *buf, size_t buf_len, __u32 ifindex) in probe_load() argument
113 xattr.prog_ifindex = ifindex; in probe_load()
120 bool bpf_probe_prog_type(enum bpf_prog_type prog_type, __u32 ifindex) in bpf_probe_prog_type() argument
127 if (ifindex && prog_type == BPF_PROG_TYPE_SCHED_CLS) in bpf_probe_prog_type()
132 probe_load(prog_type, insns, ARRAY_SIZE(insns), NULL, 0, ifindex); in bpf_probe_prog_type()
193 bool bpf_probe_map_type(enum bpf_map_type map_type, __u32 ifindex) in bpf_probe_map_type() argument
262 if (ifindex) in bpf_probe_map_type()
279 attr.map_ifindex = ifindex; in bpf_probe_map_type()
297 __u32 ifindex) in bpf_probe_helper() argument
307 ifindex); in bpf_probe_helper()
310 if (ifindex) { in bpf_probe_helper()
311 switch (get_vendor_id(ifindex)) { in bpf_probe_helper()