vsock/test: fix parameter types in SO_VM_SOCKETS_* calls
authorKonstantin Shkolnyy <kshk@linux.ibm.com>
Tue, 3 Dec 2024 15:06:55 +0000 (09:06 -0600)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 5 Dec 2024 10:39:33 +0000 (11:39 +0100)
commit3f36ee29e732b68044d531f47d31f22d265954c6
tree862f9ceabbf5e759ce78a38afcd95fca0a8cc1fe
parent7ce1c0921a806ee7d4bb24f74a3b30c89fc5fb39
vsock/test: fix parameter types in SO_VM_SOCKETS_* calls

Change parameters of SO_VM_SOCKETS_* to unsigned long long as documented
in the vm_sockets.h, because the corresponding kernel code requires them
to be at least 64-bit, no matter what architecture. Otherwise they are
too small on 32-bit machines.

Fixes: 5c338112e48a ("test/vsock: rework message bounds test")
Fixes: 685a21c314a8 ("test/vsock: add big message test")
Fixes: 542e893fbadc ("vsock/test: two tests to check credit update logic")
Fixes: 8abbffd27ced ("test/vsock: vsock_perf utility")
Signed-off-by: Konstantin Shkolnyy <kshk@linux.ibm.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/vsock/vsock_perf.c
tools/testing/vsock/vsock_test.c