Home
last modified time | relevance | path

Searched refs:map_fd_rx (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_maps.c652 int map_fd_msg = 0, map_fd_rx = 0, map_fd_tx = 0, map_fd_break; in test_sockmap() local
843 map_fd_rx = bpf_map__fd(bpf_map_rx); in test_sockmap()
844 if (map_fd_rx < 0) { in test_sockmap()
892 err = bpf_prog_attach(parse_prog, map_fd_rx, in test_sockmap()
899 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap()
912 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap()
921 err = bpf_map_update_elem(map_fd_rx, &i, &sfd[i], BPF_ANY); in test_sockmap()
923 printf("Failed map_fd_rx update sockmap %i '%i:%i'\n", in test_sockmap()
937 err = bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
1073 bpf_map_delete_elem(map_fd_rx, in test_sockmap()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_maps.c661 int map_fd_msg = 0, map_fd_rx = 0, map_fd_tx = 0, map_fd_break; in test_sockmap() local
853 map_fd_rx = bpf_map__fd(bpf_map_rx); in test_sockmap()
854 if (map_fd_rx < 0) { in test_sockmap()
902 err = bpf_prog_attach(parse_prog, map_fd_rx, in test_sockmap()
909 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap()
922 err = bpf_prog_attach(verdict_prog, map_fd_rx, in test_sockmap()
931 err = bpf_map_update_elem(map_fd_rx, &i, &sfd[i], BPF_ANY); in test_sockmap()
933 printf("Failed map_fd_rx update sockmap %i '%i:%i'\n", in test_sockmap()
947 err = bpf_map_delete_elem(map_fd_rx, &i); in test_sockmap()
1083 bpf_map_delete_elem(map_fd_rx, in test_sockmap()
[all...]

Completed in 4 milliseconds