Commit bbd9644e authored by Willem de Bruijn's avatar Willem de Bruijn Committed by David S. Miller

selftests: correct define in msg_zerocopy.c

The msg_zerocopy test defines SO_ZEROCOPY if necessary, but its value
is inconsistent with the one in asm-generic.h. Correct that.

Also convert one error to a warning. When the test is complete, report
throughput and close cleanly even if the process did not wait for all
completions.
Reported-by: default avatarDan Melnic <dmm@fb.com>
Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cc8889ae
......@@ -59,7 +59,7 @@
#endif
#ifndef SO_ZEROCOPY
#define SO_ZEROCOPY 59
#define SO_ZEROCOPY 60
#endif
#ifndef SO_EE_CODE_ZEROCOPY_COPIED
......@@ -382,7 +382,7 @@ static void do_recv_remaining_completions(int fd)
}
if (completions < expected_completions)
error(1, 0, "missing notifications: %lu < %lu\n",
fprintf(stderr, "missing notifications: %lu < %lu\n",
completions, expected_completions);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment