Skip to content

Commit 4116ec6

Browse files
Zijian Zhanggregkh
Zijian Zhang
authored andcommitted
selftests: make order checking verbose in msg_zerocopy selftest
[ Upstream commit 7d6d8f0 ] We find that when lock debugging is on, notifications may not come in order. Thus, we have order checking outputs managed by cfg_verbose, to avoid too many outputs in this case. Fixes: 07b65c5 ("test: add msg_zerocopy test") Signed-off-by: Zijian Zhang <[email protected]> Signed-off-by: Xiaochun Lu <[email protected]> Reviewed-by: Willem de Bruijn <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 946ba4e commit 4116ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/net/msg_zerocopy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static bool do_recv_completion(int fd, int domain)
438438
/* Detect notification gaps. These should not happen often, if at all.
439439
* Gaps can occur due to drops, reordering and retransmissions.
440440
*/
441-
if (lo != next_completion)
441+
if (cfg_verbose && lo != next_completion)
442442
fprintf(stderr, "gap: %u..%u does not append to %u\n",
443443
lo, hi, next_completion);
444444
next_completion = hi + 1;

0 commit comments

Comments
 (0)