]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests: correct define in msg_zerocopy.c
authorWillem de Bruijn <willemb@google.com>
Fri, 1 Sep 2017 16:31:51 +0000 (12:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Sep 2017 17:41:21 +0000 (10:41 -0700)
commitbbd9644e84f68587ed136c7e1c56e454c26231ff
tree3692a32ffd01ee1a749b508cb08ad41a1e6d3777
parentcc8889ae8298ebfc6bbf52ad98fe3b5afdf4ae70
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: Dan Melnic <dmm@fb.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/msg_zerocopy.c