Lines Matching refs:map_fd_rx
669 int map_fd_msg = 0, map_fd_rx = 0, map_fd_tx = 0, map_fd_break; in test_sockmap() local
860 map_fd_rx = bpf_map__fd(bpf_map_rx); in test_sockmap()
861 if (map_fd_rx < 0) { in test_sockmap()
909 err = bpf_prog_attach(parse_prog, map_fd_rx, in test_sockmap()
916 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap()
929 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap()
938 err = bpf_map_update_elem(map_fd_rx, &i, &sfd[i], BPF_ANY); in test_sockmap()
954 err = bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
1090 bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
1093 bpf_map_update_elem(map_fd_rx, &i, in test_sockmap()
1110 err = bpf_prog_detach2(parse_prog, map_fd_rx, __MAX_BPF_ATTACH_TYPE); in test_sockmap()
1116 err = bpf_prog_detach2(parse_prog, map_fd_rx, BPF_SK_SKB_STREAM_PARSER); in test_sockmap()
1122 err = bpf_prog_detach2(verdict_prog, map_fd_rx, BPF_SK_SKB_STREAM_VERDICT); in test_sockmap()
1131 bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
1135 close(map_fd_rx); in test_sockmap()
1147 if (map_fd_rx) in test_sockmap()
1148 bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()