Lines Matching refs:ifindex

144 static int get_vendor_id(int ifindex)  in get_vendor_id()  argument
150 if (!if_indextoname(ifindex, ifname)) in get_vendor_id()
520 __u32 ifindex) in probe_prog_load_ifindex() argument
526 .prog_ifindex = ifindex, in probe_prog_load_ifindex()
538 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex() argument
547 NULL, 0, ifindex); in probe_prog_type_ifindex()
552 bool *supported_types, const char *define_prefix, __u32 ifindex) in probe_prog_type() argument
559 if (ifindex) { in probe_prog_type()
568 res = probe_prog_type_ifindex(prog_type, ifindex); in probe_prog_type()
597 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex() argument
603 opts.map_ifindex = ifindex; in probe_map_type_ifindex()
619 const char *define_prefix, __u32 ifindex) in probe_map_type() argument
626 if (ifindex) { in probe_map_type()
635 res = probe_map_type_ifindex(map_type, ifindex); in probe_map_type()
660 __u32 ifindex) in probe_helper_ifindex() argument
670 sizeof(buf), ifindex); in probe_helper_ifindex()
673 switch (get_vendor_id(ifindex)) { in probe_helper_ifindex()
688 const char *ptype_name, __u32 ifindex) in probe_helper_for_progtype() argument
693 if (ifindex) in probe_helper_for_progtype()
694 res = probe_helper_ifindex(id, prog_type, ifindex); in probe_helper_for_progtype()
725 const char *define_prefix, __u32 ifindex) in probe_helpers_for_progtype() argument
731 if (ifindex) in probe_helpers_for_progtype()
764 ifindex); in probe_helpers_for_progtype()
785 const char *define_prefix, __u32 ifindex, in probe_misc_feature() argument
790 .prog_ifindex = ifindex, in probe_misc_feature()
812 static void probe_large_insn_limit(const char *define_prefix, __u32 ifindex) in probe_large_insn_limit() argument
822 define_prefix, ifindex, in probe_large_insn_limit()
833 probe_bounded_loops(const char *define_prefix, __u32 ifindex) in probe_bounded_loops() argument
843 define_prefix, ifindex, in probe_bounded_loops()
854 probe_v2_isa_extension(const char *define_prefix, __u32 ifindex) in probe_v2_isa_extension() argument
864 define_prefix, ifindex, in probe_v2_isa_extension()
875 probe_v3_isa_extension(const char *define_prefix, __u32 ifindex) in probe_v3_isa_extension() argument
885 define_prefix, ifindex, in probe_v3_isa_extension()
936 __u32 ifindex) in section_program_types() argument
954 ifindex); in section_program_types()
960 static void section_map_types(const char *define_prefix, __u32 ifindex) in section_map_types() argument
977 probe_map_type(map_type, map_type_str, define_prefix, ifindex); in section_map_types()
984 section_helpers(bool *supported_types, const char *define_prefix, __u32 ifindex) in section_helpers() argument
1019 ifindex); in section_helpers()
1025 static void section_misc(const char *define_prefix, __u32 ifindex) in section_misc() argument
1031 probe_large_insn_limit(define_prefix, ifindex); in section_misc()
1032 probe_bounded_loops(define_prefix, ifindex); in section_misc()
1033 probe_v2_isa_extension(define_prefix, ifindex); in section_misc()
1034 probe_v3_isa_extension(define_prefix, ifindex); in section_misc()
1167 __u32 ifindex = 0; in do_probe() local
1183 if (target != COMPONENT_UNSPEC || ifindex) { in do_probe()
1192 ifindex = if_nametoindex(ifname); in do_probe()
1193 if (!ifindex) { in do_probe()
1248 section_program_types(supported_types, define_prefix, ifindex); in do_probe()
1249 section_map_types(define_prefix, ifindex); in do_probe()
1250 section_helpers(supported_types, define_prefix, ifindex); in do_probe()
1251 section_misc(define_prefix, ifindex); in do_probe()