Home
last modified time | relevance | path

Searched refs:outer_map_fd (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_in_map_batch_ops.c68 int outer_map_fd; in create_outer_map() local
72 outer_map_fd = bpf_map_create(map_type, "outer_map", sizeof(__u32), in create_outer_map()
75 CHECK(outer_map_fd < 0, in create_outer_map()
80 return outer_map_fd; in create_outer_map()
83 static void validate_fetch_results(int outer_map_fd, in validate_fetch_results() argument
121 static void fetch_and_validate(int outer_map_fd, in fetch_and_validate() argument
142 ? bpf_map_lookup_and_delete_batch(outer_map_fd, in fetch_and_validate()
148 : bpf_map_lookup_batch(outer_map_fd, in fetch_and_validate()
177 validate_fetch_results(outer_map_fd, fetched_keys, in fetch_and_validate()
195 int outer_map_fd, ret; in _map_in_map_batch_ops() local
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbloom_filter_map.c107 int outer_map_fd, inner_map_fd, err, i, key = 0; in test_inner_map() local
123 outer_map_fd = bpf_map__fd(skel->maps.outer_map); in test_inner_map()
124 err = bpf_map_update_elem(outer_map_fd, &key, &inner_map_fd, BPF_ANY); in test_inner_map()
141 err = bpf_map_delete_elem(outer_map_fd, &key); in test_inner_map()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c639 int inner_map_fd, outer_map_fd; in create_map_in_map() local
651 outer_map_fd = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in create_map_in_map()
653 if (outer_map_fd < 0) { in create_map_in_map()
662 return outer_map_fd; in create_map_in_map()