Home
last modified time | relevance | path

Searched refs:outer_map (Results 1 – 11 of 11) sorted by relevance

/linux/samples/bpf/
H A Dtest_map_in_map.bpf.c112 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 Dmap_in_map.c76 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 Dselect_reuseport.c37 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 Dtest_mmap_inner_array.c39 err = bpf_map__update_elem(skel->maps.outer_map, in test_mmap_inner_array()
H A Dbloom_filter_map.c123 outer_map_fd = bpf_map__fd(skel->maps.outer_map); in test_inner_map()
/linux/tools/testing/selftests/bpf/progs/
H A Daccess_map_in_map.c44 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 Dmmap_inner_array.c25 } outer_map SEC(".maps");
45 map = bpf_map_lookup_elem(&outer_map, &curr_pid); in add_to_list_in_inner_array()
H A Dbloom_filter_map.c32 } outer_map SEC(".maps");
62 inner_map = bpf_map_lookup_elem(&outer_map, &key); in inner_map()
H A Dtest_select_reuseport_kern.c27 } outer_map SEC(".maps");
149 reuseport_array = bpf_map_lookup_elem(&outer_map, &index_zero); in _select_by_skb_data()
H A Dinner_array_lookup.c13 struct outer_map { struct
/linux/Documentation/bpf/
H A Dmap_of_maps.rst82 } outer_map SEC(".maps") = {