Searched refs:map_fd_ipv4 (Results 1 – 1 of 1) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 246 int map_fd_ipv4; in test_lpm_ipaddr() local 255 map_fd_ipv4 = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_ipaddr() 258 assert(map_fd_ipv4 >= 0); in test_lpm_ipaddr() 269 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 274 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 279 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 284 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 289 assert(bpf_map_update_elem(map_fd_ipv4, key_ipv4, &value, 0) == 0); in test_lpm_ipaddr() 302 assert(bpf_map_lookup_elem(map_fd_ipv4, key_ipv4, &value) == 0); in test_lpm_ipaddr() 306 assert(bpf_map_lookup_elem(map_fd_ipv4, key_ipv4, &value) == 0); in test_lpm_ipaddr() [all …]
|