]> www.infradead.org Git - users/jedix/linux-maple.git/commit
vsock/test: two tests to check credit update logic
authorArseniy Krasnov <avkrasnov@salutedevices.com>
Thu, 14 Dec 2023 12:52:30 +0000 (15:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2023 10:37:35 +0000 (10:37 +0000)
commit542e893fbadc51caa38a7c4c2a8f8e822cdba2b1
tree52814a32ece7cb1bad9aebc29b0275fdffea9699
parent0fe1798968115488c0c02f4633032a015b1faf97
vsock/test: two tests to check credit update logic

Both tests are almost same, only differs in two 'if' conditions, so
implemented in a single function. Tests check, that credit update
message is sent:

1) During setting SO_RCVLOWAT value of the socket.
2) When number of 'rx_bytes' become smaller than SO_RCVLOWAT value.

Signed-off-by: Arseniy Krasnov <avkrasnov@salutedevices.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/vsock/vsock_test.c