Re: [PATCH net-next] selftests: net/psock_lib: Handle EINTR and EAGAIN

2024-11-20 Thread Leo Stone
Willem de Bruijn wrote: > Did you observe actual issues or is this based on the comment in the > existing code ("Should really handle EINTR and EAGAIN"). No, this patch was based purely off of the comment, and the examples of similar code in other selftests, e.g. tools/testing/selftests/bpf/xsk.c:

Re: [PATCH net-next] selftests: net/psock_lib: Handle EINTR and EAGAIN

2024-11-18 Thread Willem de Bruijn
Leo Stone wrote: > Make pair_udp_send_char handle EAGAIN, EINTR, and partial reads or > writes. > > Signed-off-by: Leo Stone Did you observe actual issues or is this based on the comment in the existing code ("Should really handle EINTR and EAGAIN"). AFAIK all the users of psock_lib use default

[PATCH net-next] selftests: net/psock_lib: Handle EINTR and EAGAIN

2024-11-17 Thread Leo Stone
Make pair_udp_send_char handle EAGAIN, EINTR, and partial reads or writes. Signed-off-by: Leo Stone --- tools/testing/selftests/net/psock_lib.h | 39 +++-- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/tools/testing/selftests/net/psock_lib.h b/tools/testing/