diff options
author | Arseniy Krasnov <avkrasnov@salutedevices.com> | 2023-12-14 15:52:28 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-12-15 13:37:35 +0300 |
commit | 93b80887668226180ea5f5349cc728ca6dc700ab (patch) | |
tree | e27164f79784c1b98c0d923d72f4defc1ea3684a /net/vmw_vsock/virtio_transport.c | |
parent | bb7403655b3c3eb245d0ee330047cd3e20b3c4af (diff) | |
download | linux-93b80887668226180ea5f5349cc728ca6dc700ab.tar.xz |
virtio/vsock: fix logic which reduces credit update messages
Add one more condition for sending credit update during dequeue from
stream socket: when number of bytes in the rx queue is smaller than
SO_RCVLOWAT value of the socket. This is actual for non-default value
of SO_RCVLOWAT (e.g. not 1) - idea is to "kick" peer to continue data
transmission, because we need at least SO_RCVLOWAT bytes in our rx
queue to wake up user for reading data (in corner case it is also
possible to stuck both tx and rx sides, this is why 'Fixes' is used).
Fixes: b89d882dc9fc ("vsock/virtio: reduce credit update messages")
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>
Diffstat (limited to 'net/vmw_vsock/virtio_transport.c')
0 files changed, 0 insertions, 0 deletions