Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_synproxy.c282 *ports_map_fd = -1; in syncookie_open_bpf_maps()
334 *ports_map_fd = map_fd; in syncookie_open_bpf_maps()
340 if (*values_map_fd != -1 && *ports_map_fd != -1) { in syncookie_open_bpf_maps()
350 if (*ports_map_fd != -1) in syncookie_open_bpf_maps()
351 close(*ports_map_fd); in syncookie_open_bpf_maps()
353 *ports_map_fd = -1; in syncookie_open_bpf_maps()
362 int values_map_fd, ports_map_fd; in main() local
392 err = syncookie_open_bpf_maps(prog_id, &values_map_fd, &ports_map_fd); in main()
408 err = bpf_map_update_elem(ports_map_fd, &port_idx, &port, BPF_ANY); in main()
418 err = bpf_map_update_elem(ports_map_fd, &port_idx, &port_last, BPF_ANY); in main()
[all …]