Searched refs:map_fd_ipv6 (Results 1 – 1 of 1) sorted by relevance
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_lpm_map.c | 337 int map_fd_ipv6; in test_lpm_ipaddr() local 350 map_fd_ipv6 = bpf_create_map(BPF_MAP_TYPE_LPM_TRIE, in test_lpm_ipaddr() 353 assert(map_fd_ipv6 >= 0); in test_lpm_ipaddr() 384 assert(bpf_map_update_elem(map_fd_ipv6, key_ipv6, &value, 0) == 0); in test_lpm_ipaddr() 400 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == 0); in test_lpm_ipaddr() 404 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == 0); in test_lpm_ipaddr() 417 assert(bpf_map_lookup_elem(map_fd_ipv6, key_ipv6, &value) == -1 && in test_lpm_ipaddr() 421 close(map_fd_ipv6); in test_lpm_ipaddr()
|