Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_tunnel.c541 int local_ip_map_fd = -1; in test_vxlan_tunnel() local
577 local_ip_map_fd = bpf_map__fd(skel->maps.local_ip_map); in test_vxlan_tunnel()
578 if (!ASSERT_GE(local_ip_map_fd, 0, "bpf_map__fd")) in test_vxlan_tunnel()
581 err = bpf_map_update_elem(local_ip_map_fd, &key, &local_ip, BPF_ANY); in test_vxlan_tunnel()
591 if (local_ip_map_fd >= 0) in test_vxlan_tunnel()
592 close(local_ip_map_fd); in test_vxlan_tunnel()
601 int local_ip_map_fd = -1; in test_ip6vxlan_tunnel() local
632 local_ip_map_fd = bpf_map__fd(skel->maps.local_ip_map); in test_ip6vxlan_tunnel()
633 if (!ASSERT_GE(local_ip_map_fd, 0, "get local_ip_map fd")) in test_ip6vxlan_tunnel()
636 err = bpf_map_update_elem(local_ip_map_fd, &key, &local_ip, BPF_ANY); in test_ip6vxlan_tunnel()
[all …]