Lines Matching refs:maps

85 struct maps {  struct
202 struct maps *maps, int status) in test_send_redir_recv() argument
210 if (xbpf_map_update_elem(maps->verd, &u32(SK_DROP), &u32(0), BPF_ANY) || in test_send_redir_recv()
211 xbpf_map_update_elem(maps->verd, &u32(SK_PASS), &u32(0), BPF_ANY)) in test_send_redir_recv()
214 if (xbpf_map_update_elem(maps->in, &u32(0), &u64(sd_in), BPF_NOEXIST)) in test_send_redir_recv()
217 if (xbpf_map_update_elem(maps->out, &u32(0), &u64(sd_out), BPF_NOEXIST)) in test_send_redir_recv()
235 maps->verd, status); in test_send_redir_recv()
247 if (xbpf_map_lookup_elem(maps->verd, &u32(SK_DROP), &drop) || in test_send_redir_recv()
248 xbpf_map_lookup_elem(maps->verd, &u32(SK_PASS), &pass)) in test_send_redir_recv()
264 xbpf_map_delete_elem(maps->out, &u32(0)); in test_send_redir_recv()
273 xbpf_map_delete_elem(maps->out, &u32(0)); in test_send_redir_recv()
275 xbpf_map_delete_elem(maps->in, &u32(0)); in test_send_redir_recv()
328 struct maps *maps, struct socket_spec *s_in, in test_socket() argument
360 maps, status); in test_socket()
364 struct maps *maps) in test_redir() argument
387 test_socket(type, redir, maps, s, s); in test_redir()
401 test_socket(type, redir, maps, in, out); in test_redir()
421 struct maps maps; in test_map() local
432 maps.in = bpf_map__fd(skel->maps.nop_map); in test_map()
433 maps.out = bpf_map__fd(skel->maps.sock_map); in test_map()
436 maps.in = bpf_map__fd(skel->maps.nop_hash); in test_map()
437 maps.out = bpf_map__fd(skel->maps.sock_hash); in test_map()
445 maps.verd = bpf_map__fd(skel->maps.verdict_map); in test_map()
449 if (xbpf_prog_attach(prog_fd, maps.in, attach_type, 0)) in test_map()
452 test_redir(type, r, &maps); in test_map()
454 if (xbpf_prog_detach2(prog_fd, maps.in, attach_type)) in test_map()