Lines Matching full: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()
893 probe_v4_isa_extension(const char *define_prefix, __u32 ifindex) in probe_v4_isa_extension() argument
904 define_prefix, ifindex, in probe_v4_isa_extension()
955 __u32 ifindex) in section_program_types() argument
973 ifindex); in section_program_types()
979 static void section_map_types(const char *define_prefix, __u32 ifindex) in section_map_types() argument
996 probe_map_type(map_type, map_type_str, define_prefix, ifindex); in section_map_types()
1003 section_helpers(bool *supported_types, const char *define_prefix, __u32 ifindex) in section_helpers() argument
1038 ifindex); in section_helpers()
1044 static void section_misc(const char *define_prefix, __u32 ifindex) in section_misc() argument
1050 probe_large_insn_limit(define_prefix, ifindex); in section_misc()
1051 probe_bounded_loops(define_prefix, ifindex); in section_misc()
1052 probe_v2_isa_extension(define_prefix, ifindex); in section_misc()
1053 probe_v3_isa_extension(define_prefix, ifindex); in section_misc()
1054 probe_v4_isa_extension(define_prefix, ifindex); in section_misc()
1187 __u32 ifindex = 0; in do_probe() local
1203 if (target != COMPONENT_UNSPEC || ifindex) { in do_probe()
1212 ifindex = if_nametoindex(ifname); in do_probe()
1213 if (!ifindex) { in do_probe()
1268 section_program_types(supported_types, define_prefix, ifindex); in do_probe()
1269 section_map_types(define_prefix, ifindex); in do_probe()
1270 section_helpers(supported_types, define_prefix, ifindex); in do_probe()
1271 section_misc(define_prefix, ifindex); in do_probe()