linux-stable/net/vmw_vsock
Arseniy Krasnov ad43344ab4 virtio/vsock: fix logic which reduces credit update messages
[ Upstream commit 93b8088766 ]

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: b89d882dc9 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:37:45 -08:00
..
af_vsock.c vsock: avoid to close connected socket after the timeout 2023-05-30 12:57:52 +01:00
af_vsock_tap.c
diag.c
hyperv_transport.c vsock: fix locking in vsock_shutdown() 2021-02-17 11:02:30 +01:00
Kconfig
Makefile
virtio_transport.c vsock: each transport cycles only on its own sockets 2022-03-23 09:13:27 +01:00
virtio_transport_common.c virtio/vsock: fix logic which reduces credit update messages 2024-01-25 14:37:45 -08:00
vmci_transport.c net: vmw_vsock: vmci: Check memcpy_from_msg() 2023-01-14 10:15:42 +01:00
vmci_transport.h
vmci_transport_notify.c
vmci_transport_notify.h
vmci_transport_notify_qstate.c
vsock_addr.c
vsock_loopback.c