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()
516 __u32 ifindex) in probe_prog_load_ifindex() argument
522 .prog_ifindex = ifindex, in probe_prog_load_ifindex()
534 static bool probe_prog_type_ifindex(enum bpf_prog_type prog_type, __u32 ifindex) in probe_prog_type_ifindex() argument
543 NULL, 0, ifindex); in probe_prog_type_ifindex()
548 bool *supported_types, const char *define_prefix, __u32 ifindex) in probe_prog_type() argument
555 if (ifindex) { in probe_prog_type()
564 res = probe_prog_type_ifindex(prog_type, ifindex); in probe_prog_type()
593 static bool probe_map_type_ifindex(enum bpf_map_type map_type, __u32 ifindex) in probe_map_type_ifindex() argument
599 opts.map_ifindex = ifindex; in probe_map_type_ifindex()
615 const char *define_prefix, __u32 ifindex) in probe_map_type() argument
622 if (ifindex) { in probe_map_type()
631 res = probe_map_type_ifindex(map_type, ifindex); in probe_map_type()
656 __u32 ifindex) in probe_helper_ifindex() argument
666 sizeof(buf), ifindex); in probe_helper_ifindex()
670 switch (get_vendor_id(ifindex)) { in probe_helper_ifindex()
685 const char *ptype_name, __u32 ifindex) in probe_helper_for_progtype() argument
690 if (ifindex) in probe_helper_for_progtype()
691 res = probe_helper_ifindex(id, prog_type, ifindex); in probe_helper_for_progtype()
722 const char *define_prefix, __u32 ifindex) in probe_helpers_for_progtype() argument
728 if (ifindex) in probe_helpers_for_progtype()
761 ifindex); in probe_helpers_for_progtype()
782 const char *define_prefix, __u32 ifindex, in probe_misc_feature() argument
787 .prog_ifindex = ifindex, in probe_misc_feature()
809 static void probe_large_insn_limit(const char *define_prefix, __u32 ifindex) in probe_large_insn_limit() argument
819 define_prefix, ifindex, in probe_large_insn_limit()
830 probe_bounded_loops(const char *define_prefix, __u32 ifindex) in probe_bounded_loops() argument
840 define_prefix, ifindex, in probe_bounded_loops()
851 probe_v2_isa_extension(const char *define_prefix, __u32 ifindex) in probe_v2_isa_extension() argument
861 define_prefix, ifindex, in probe_v2_isa_extension()
872 probe_v3_isa_extension(const char *define_prefix, __u32 ifindex) in probe_v3_isa_extension() argument
882 define_prefix, ifindex, in probe_v3_isa_extension()
933 __u32 ifindex) in section_program_types() argument
951 ifindex); in section_program_types()
957 static void section_map_types(const char *define_prefix, __u32 ifindex) in section_map_types() argument
974 probe_map_type(map_type, map_type_str, define_prefix, ifindex); in section_map_types()
981 section_helpers(bool *supported_types, const char *define_prefix, __u32 ifindex) in section_helpers() argument
1016 ifindex); in section_helpers()
1022 static void section_misc(const char *define_prefix, __u32 ifindex) in section_misc() argument
1028 probe_large_insn_limit(define_prefix, ifindex); in section_misc()
1029 probe_bounded_loops(define_prefix, ifindex); in section_misc()
1030 probe_v2_isa_extension(define_prefix, ifindex); in section_misc()
1031 probe_v3_isa_extension(define_prefix, ifindex); in section_misc()
1164 __u32 ifindex = 0; in do_probe() local
1180 if (target != COMPONENT_UNSPEC || ifindex) { in do_probe()
1189 ifindex = if_nametoindex(ifname); in do_probe()
1190 if (!ifindex) { in do_probe()
1245 section_program_types(supported_types, define_prefix, ifindex); in do_probe()
1246 section_map_types(define_prefix, ifindex); in do_probe()
1247 section_helpers(supported_types, define_prefix, ifindex); in do_probe()
1248 section_misc(define_prefix, ifindex); in do_probe()