8a0697f2 | 25-Jul-2023 |
Arseniy Krasnov <AVKrasnov@sberdevices.ru> |
vsock/test: MSG_PEEK test for SOCK_SEQPACKET
This adds MSG_PEEK test for SOCK_SEQPACKET. It works in the same way as SOCK_STREAM test, except it also tests MSG_TRUNC flag.
Signed-off-by: Arseniy Kr
vsock/test: MSG_PEEK test for SOCK_SEQPACKET
This adds MSG_PEEK test for SOCK_SEQPACKET. It works in the same way as SOCK_STREAM test, except it also tests MSG_TRUNC flag.
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
8abbffd2 | 10-Jan-2023 |
Arseniy Krasnov <AVKrasnov@sberdevices.ru> |
test/vsock: vsock_perf utility
This adds utility to check vsock rx/tx performance.
Usage as sender: ./vsock_perf --sender <cid> --port <port> --bytes <bytes to send> Usage as receiver: ./vsock_perf
test/vsock: vsock_perf utility
This adds utility to check vsock rx/tx performance.
Usage as sender: ./vsock_perf --sender <cid> --port <port> --bytes <bytes to send> Usage as receiver: ./vsock_perf --port <port> --rcvlowat <SO_RCVLOWAT>
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
685a21c3 | 10-Jan-2023 |
Arseniy Krasnov <AVKrasnov@sberdevices.ru> |
test/vsock: add big message test
This adds test for sending message, bigger than peer's buffer size. For SOCK_SEQPACKET socket it must fail, as this type of socket has message size limit.
Signed-of
test/vsock: add big message test
This adds test for sending message, bigger than peer's buffer size. For SOCK_SEQPACKET socket it must fail, as this type of socket has message size limit.
Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
show more ...
|
e89600eb | 17-Mar-2022 |
Krasnov Arseniy Vladimirovich <AVKrasnov@sberdevices.ru> |
af_vsock: SOCK_SEQPACKET broken buffer test
Add test where sender sends two message, each with own data pattern. Reader tries to read first to broken buffer: it has three pages size, but middle page
af_vsock: SOCK_SEQPACKET broken buffer test
Add test where sender sends two message, each with own data pattern. Reader tries to read first to broken buffer: it has three pages size, but middle page is unmapped. Then, reader tries to read second message to valid buffer. Test checks, that uncopied part of first message was dropped and thus not copied as part of second message.
Signed-off-by: Krasnov Arseniy Vladimirovich <AVKrasnov@sberdevices.ru> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
d6269a93 | 18-Dec-2019 |
Stefano Garzarella <sgarzare@redhat.com> |
vsock_test: add SOCK_STREAM MSG_PEEK test
Test if the MSG_PEEK flags of recv(2) works as expected.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@dave
vsock_test: add SOCK_STREAM MSG_PEEK test
Test if the MSG_PEEK flags of recv(2) works as expected.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
8d00b93f | 18-Dec-2019 |
Stefano Garzarella <sgarzare@redhat.com> |
testing/vsock: print list of options and description
Since we now have several options, in the help we print the list of all supported options and a brief description of them.
Signed-off-by: Stefan
testing/vsock: print list of options and description
Since we now have several options, in the help we print the list of all supported options and a brief description of them.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
5a2b2425 | 18-Dec-2019 |
Stefano Garzarella <sgarzare@redhat.com> |
testing/vsock: add parameters to list and skip tests
Some tests can fail with transports that have a slightly different behavior, so let's add the possibility to specify which tests to skip.
Signed
testing/vsock: add parameters to list and skip tests
Some tests can fail with transports that have a slightly different behavior, so let's add the possibility to specify which tests to skip.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
770ce007 | 18-Dec-2019 |
Stefano Garzarella <sgarzare@redhat.com> |
vsock_test: wait for the remote to close the connection
Before check if a send returns -EPIPE, we need to make sure the connection is closed. To do that, we use epoll API to wait EPOLLRDHUP or EPOLL
vsock_test: wait for the remote to close the connection
Before check if a send returns -EPIPE, we need to make sure the connection is closed. To do that, we use epoll API to wait EPOLLRDHUP or EPOLLHUP events on the socket.
Reported-by: Jorgen Hansen <jhansen@vmware.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
cdbcc18d | 18-Dec-2019 |
Stefan Hajnoczi <stefanha@redhat.com> |
VSOCK: add AF_VSOCK test cases
The vsock_test.c program runs a test suite of AF_VSOCK test cases.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@re
VSOCK: add AF_VSOCK test cases
The vsock_test.c program runs a test suite of AF_VSOCK test cases.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|
092f32ae | 18-Dec-2019 |
Stefan Hajnoczi <stefanha@redhat.com> |
VSOCK: add send_byte()/recv_byte() test utilities
Test cases will want to transfer data. This patch adds utility functions to do this.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-o
VSOCK: add send_byte()/recv_byte() test utilities
Test cases will want to transfer data. This patch adds utility functions to do this.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
show more ...
|