projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
selftests/bpf: fix a CI failure caused by vsock sockmap test
[platform/kernel/linux-starfive.git]
/
tools
/
testing
/
selftests
/
bpf
/
prog_tests
/
sockmap_listen.c
diff --git
a/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
b/tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
index
b4f6f3a
..
ba35bcc
100644
(file)
--- a/
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
+++ b/
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c
@@
-1432,7
+1432,7
@@
static void vsock_unix_redir_connectible(int sock_mapfd, int verd_mapfd,
if (n < 1)
goto out;
- n =
recv(mode == REDIR_INGRESS ? u0 : u1, &b, sizeof(b), MSG_DONTWAIT
);
+ n =
xrecv_nonblock(mode == REDIR_INGRESS ? u0 : u1, &b, sizeof(b), 0
);
if (n < 0)
FAIL("%s: recv() err, errno=%d", log_prefix, errno);
if (n == 0)