Home
last modified time | relevance | path

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

/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/
Dtest_tunnel.c251 int local_ip_map_fd = -1; in test_vxlan_tunnel() local
309 local_ip_map_fd = bpf_map__fd(skel->maps.local_ip_map); in test_vxlan_tunnel()
310 if (!ASSERT_GE(local_ip_map_fd, 0, "bpf_map__fd")) in test_vxlan_tunnel()
313 err = bpf_map_update_elem(local_ip_map_fd, &key, &local_ip, BPF_ANY); in test_vxlan_tunnel()
325 if (local_ip_map_fd >= 0) in test_vxlan_tunnel()
326 close(local_ip_map_fd); in test_vxlan_tunnel()
335 int local_ip_map_fd = -1; in test_ip6vxlan_tunnel() local
382 local_ip_map_fd = bpf_map__fd(skel->maps.local_ip_map); in test_ip6vxlan_tunnel()
383 if (!ASSERT_GE(local_ip_map_fd, 0, "get local_ip_map fd")) in test_ip6vxlan_tunnel()
386 err = bpf_map_update_elem(local_ip_map_fd, &key, &local_ip, BPF_ANY); in test_ip6vxlan_tunnel()
[all …]