Lines Matching refs:map_fd
1171 static void prepare_reuseport_grp(int type, int map_fd, in prepare_reuseport_grp() argument
1202 err = bpf_map_update_elem(map_fd, &index0, &fd64, in prepare_reuseport_grp()
1231 err = bpf_map_update_elem(map_fd, &index0, &fd64, in prepare_reuseport_grp()
1257 int map_fd, err, t, f; in test_reuseport_array() local
1261 map_fd = bpf_create_map(BPF_MAP_TYPE_REUSEPORT_SOCKARRAY, in test_reuseport_array()
1263 CHECK(map_fd == -1, "reuseport array create", in test_reuseport_array()
1264 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1267 err = bpf_map_delete_elem(map_fd, &bad_index); in test_reuseport_array()
1271 err = bpf_map_update_elem(map_fd, &bad_index, &fd64, BPF_ANY); in test_reuseport_array()
1276 err = bpf_map_lookup_elem(map_fd, &bad_index, &map_cookie); in test_reuseport_array()
1282 err = bpf_map_lookup_elem(map_fd, &index3, &map_cookie); in test_reuseport_array()
1286 err = bpf_map_delete_elem(map_fd, &index3); in test_reuseport_array()
1294 prepare_reuseport_grp(type, map_fd, grpa_fds64, in test_reuseport_array()
1299 err = bpf_map_update_elem(map_fd, &index3, &grpa_fds64[fds_idx], in test_reuseport_array()
1308 err = bpf_map_update_elem(map_fd, &index3, &grpa_fds64[fds_idx], in test_reuseport_array()
1317 err = bpf_map_update_elem(map_fd, &index3, &grpa_fds64[fds_idx], in test_reuseport_array()
1325 err = bpf_map_update_elem(map_fd, &index3, &grpa_fds64[fds_idx], in test_reuseport_array()
1334 err = bpf_map_update_elem(map_fd, &index3, &grpa_fds64[fds_idx], in test_reuseport_array()
1344 err = bpf_map_update_elem(map_fd, &index3, &fd64, BPF_ANY); in test_reuseport_array()
1350 err = bpf_map_update_elem(map_fd, &index0, &fd64, BPF_ANY); in test_reuseport_array()
1357 err = bpf_map_delete_elem(map_fd, &index3); in test_reuseport_array()
1363 err = bpf_map_update_elem(map_fd, &index3, &fd64, BPF_NOEXIST); in test_reuseport_array()
1369 err = bpf_map_lookup_elem(map_fd, &index3, &map_cookie); in test_reuseport_array()
1378 err = bpf_map_lookup_elem(map_fd, &index3, &map_cookie); in test_reuseport_array()
1389 err = bpf_map_update_elem(map_fd, &index3, &fd64, BPF_NOEXIST); in test_reuseport_array()
1395 close(map_fd); in test_reuseport_array()
1398 map_fd = bpf_create_map(BPF_MAP_TYPE_REUSEPORT_SOCKARRAY, in test_reuseport_array()
1400 CHECK(map_fd == -1, "reuseport array create", in test_reuseport_array()
1401 "map_fd:%d, errno:%d\n", map_fd, errno); in test_reuseport_array()
1402 prepare_reuseport_grp(SOCK_STREAM, map_fd, &fd64, &sk_cookie, 1); in test_reuseport_array()
1404 err = bpf_map_update_elem(map_fd, &index3, &fd, BPF_NOEXIST); in test_reuseport_array()
1407 err = bpf_map_lookup_elem(map_fd, &index3, &map_cookie); in test_reuseport_array()
1412 close(map_fd); in test_reuseport_array()