vsock/test: add '--peer-port' input argument
authorArseniy Krasnov <avkrasnov@salutedevices.com>
Tue, 23 Jan 2024 07:27:50 +0000 (10:27 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 25 Jan 2024 01:47:35 +0000 (17:47 -0800)
commite18c709230cb05886fdcf6b90ef21a0a733079d7
tree16414a03699b4636ba7ab40616f25436c4a07985
parent16c595a53c5f37c2345f4b4b82f7eb927c2dda5e
vsock/test: add '--peer-port' input argument

Implement port for given CID as input argument instead of using
hardcoded value '1234'. This allows to run different test instances
on a single CID. Port argument is not required parameter and if it is
not set, then default value will be '1234' - thus we preserve previous
behaviour.

Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Link: https://lore.kernel.org/r/20240123072750.4084181-1-avkrasnov@salutedevices.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/vsock/util.c
tools/testing/vsock/util.h
tools/testing/vsock/vsock_diag_test.c
tools/testing/vsock/vsock_test.c
tools/testing/vsock/vsock_test_zerocopy.c
tools/testing/vsock/vsock_uring_test.c