diff options
author | Arseniy Krasnov <avkrasnov@salutedevices.com> | 2023-10-10 22:15:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-10-15 13:19:42 +0100 |
commit | bc36442ef3b776ee6d5148a4e175c367af057ce1 (patch) | |
tree | a5b1db2ab8200337042a6d7caf6f343199a9a8a1 /tools/testing/vsock/Makefile | |
parent | docs: net: description of MSG_ZEROCOPY for AF_VSOCK (diff) | |
download | linux-bc36442ef3b776ee6d5148a4e175c367af057ce1.tar.xz linux-bc36442ef3b776ee6d5148a4e175c367af057ce1.zip |
test/vsock: MSG_ZEROCOPY flag tests
This adds three tests for MSG_ZEROCOPY feature:
1) SOCK_STREAM tx with different buffers.
2) SOCK_SEQPACKET tx with different buffers.
3) SOCK_STREAM test to read empty error queue of the socket.
Patch also works as preparation for the next patches for tools in this
patchset: vsock_perf and vsock_uring_test:
1) Adds several new functions to util.c - they will be also used by
vsock_uring_test.
2) Adds two new functions for MSG_ZEROCOPY handling to a new source
file - such source will be shared between vsock_test, vsock_perf and
vsock_uring_test, thus avoiding code copy-pasting.
Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/vsock/Makefile')
-rw-r--r-- | tools/testing/vsock/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/vsock/Makefile b/tools/testing/vsock/Makefile index 21a98ba565ab..bb938e4790b5 100644 --- a/tools/testing/vsock/Makefile +++ b/tools/testing/vsock/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-only all: test vsock_perf test: vsock_test vsock_diag_test -vsock_test: vsock_test.o timeout.o control.o util.o +vsock_test: vsock_test.o vsock_test_zerocopy.o timeout.o control.o util.o msg_zerocopy_common.o vsock_diag_test: vsock_diag_test.o timeout.o control.o util.o vsock_perf: vsock_perf.o |