Searched refs:map_fd_ipv4 (Results 1 – 1 of 1) sorted by relevance
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 336 int map_fd_ipv4; in test_lpm_ipaddr() local 345 map_fd_ipv4 = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_ipaddr() 348 assert(map_fd_ipv4 >= 0); in test_lpm_ipaddr() 359 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 364 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 369 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 374 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 379 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 392 assert(bpf_map_lookup_elem(map_fd_ipv4, key_ipv4, &value) == 0); in test_lpm_ipaddr() 396 assert(bpf_map_lookup_elem(map_fd_ipv4, key_ipv4, &value) == 0); in test_lpm_ipaddr() [all …]
|