summaryrefslogtreecommitdiff
path: root/tools/testing/vsock/msg_zerocopy_common.h
diff options
context:
space:
mode:
authorKonstantin Shkolnyy <kshk@linux.ibm.com>2024-12-03 18:06:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-12 15:14:57 +0300
commitaa9f6f353bcc3eb0ae96ff1bbaf77ced08a9b932 (patch)
tree7df5d37d9cd25e6e09353cbc676106e5c3acaf0f /tools/testing/vsock/msg_zerocopy_common.h
parentceab30fec9ed21b343c5b817db694d7e8c75824c (diff)
downloadlinux-aa9f6f353bcc3eb0ae96ff1bbaf77ced08a9b932.tar.xz
vsock/test: verify socket options after setting them
commit 86814d8ffd55fd4ad19c512eccd721522a370fb2 upstream. Replace setsockopt() calls with calls to functions that follow setsockopt() with getsockopt() and check that the returned value and its size are the same as have been set. (Except in vsock_perf.) Signed-off-by: Konstantin Shkolnyy <kshk@linux.ibm.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> [Stefano: patch needed to avoid vsock test build failure reported by Johan Korsnes after backporting commit 0a98de8013696 ("vsock/test: fix seqpacket message bounds test") in 6.12-stable tree] Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Tested-by: Johan Korsnes <johan.korsnes@remarkable.no> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/vsock/msg_zerocopy_common.h')
-rw-r--r--tools/testing/vsock/msg_zerocopy_common.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/testing/vsock/msg_zerocopy_common.h b/tools/testing/vsock/msg_zerocopy_common.h
index 3763c5ccedb9..ad14139e93ca 100644
--- a/tools/testing/vsock/msg_zerocopy_common.h
+++ b/tools/testing/vsock/msg_zerocopy_common.h
@@ -12,7 +12,6 @@
#define VSOCK_RECVERR 1
#endif
-void enable_so_zerocopy(int fd);
void vsock_recv_completion(int fd, const bool *zerocopied);
#endif /* MSG_ZEROCOPY_COMMON_H */