linux-stable/net/vmw_vsock
Arseniy Krasnov 48614d528b 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:34:25 -08:00
..
Kconfig
Makefile
af_vsock.c vsock: avoid to close connected socket after the timeout 2023-05-30 12:44:05 +01:00
af_vsock_tap.c
diag.c
hyperv_transport.c vsock: fix locking in vsock_shutdown() 2021-02-17 10:35:19 +01:00
virtio_transport.c vsock/virtio: avoid potential deadlock when vsock device remove 2021-08-18 08:57:01 +02:00
virtio_transport_common.c virtio/vsock: fix logic which reduces credit update messages 2024-01-25 14:34:25 -08:00
vmci_transport.c net: vmw_vsock: vmci: Check memcpy_from_msg() 2023-01-18 11:41:13 +01:00
vmci_transport.h
vmci_transport_notify.c
vmci_transport_notify.h
vmci_transport_notify_qstate.c
vsock_addr.c