Searched refs:outer_map (Results 1 – 11 of 11) sorted by relevance
/linux/samples/bpf/ |
H A D | test_map_in_map.bpf.c | 112 void *outer_map, *inner_map; in BPF_KSYSCALL() local 139 outer_map = &a_of_port_a; in BPF_KSYSCALL() 141 outer_map = &h_of_port_a; in BPF_KSYSCALL() 143 outer_map = &h_of_port_h; in BPF_KSYSCALL() 150 inner_map = bpf_map_lookup_elem(outer_map, &port_key); in BPF_KSYSCALL()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | map_in_map.c | 76 struct bpf_map *outer_map; in test_map_in_map_access() local 91 outer_map = bpf_object__find_map_by_name(skel->obj, map_name); in test_map_in_map_access() 92 if (!ASSERT_OK_PTR(outer_map, "find map")) in test_map_in_map_access() 107 ctx.outer_map_fd = bpf_map__fd(outer_map); in test_map_in_map_access()
|
H A D | select_reuseport.c | 37 static int reuseport_array = -1, outer_map = -1; variable 78 outer_map = bpf_map_create(BPF_MAP_TYPE_ARRAY_OF_MAPS, "outer_map", in create_maps() 80 RET_ERR(outer_map < 0, "creating outer_map", in create_maps() 81 "outer_map:%d errno:%d\n", outer_map, errno); in create_maps() 99 err = bpf_map__reuse_fd(map, outer_map); in prepare_bpf_obj() 673 err = bpf_map_update_elem(outer_map, &index_zero, &reuseport_array, in setup_per_test() 703 err = bpf_map_delete_elem(outer_map, &index_zero); in cleanup_per_test() 710 if (outer_map >= 0) { in cleanup() 711 close(outer_map); in cleanup() 712 outer_map = -1; in cleanup()
|
H A D | test_mmap_inner_array.c | 39 err = bpf_map__update_elem(skel->maps.outer_map, in test_mmap_inner_array()
|
H A D | bloom_filter_map.c | 123 outer_map_fd = bpf_map__fd(skel->maps.outer_map); in test_inner_map()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | access_map_in_map.c | 44 static int acc_map_in_map(void *outer_map) in acc_map_in_map() argument 54 inner_map = bpf_map_lookup_elem(outer_map, &key); in acc_map_in_map() 60 inner_map = bpf_map_lookup_elem(outer_map, &key); in acc_map_in_map()
|
H A D | mmap_inner_array.c | 25 } outer_map SEC(".maps"); 45 map = bpf_map_lookup_elem(&outer_map, &curr_pid); in add_to_list_in_inner_array()
|
H A D | bloom_filter_map.c | 32 } outer_map SEC(".maps"); 62 inner_map = bpf_map_lookup_elem(&outer_map, &key); in inner_map()
|
H A D | test_select_reuseport_kern.c | 27 } outer_map SEC(".maps"); 149 reuseport_array = bpf_map_lookup_elem(&outer_map, &index_zero); in _select_by_skb_data()
|
H A D | inner_array_lookup.c | 13 struct outer_map { struct
|
/linux/Documentation/bpf/ |
H A D | map_of_maps.rst | 82 } outer_map SEC(".maps") = {
|