vsock/virtio: reduce credit update messages
authorStefano Garzarella <sgarzare@redhat.com>
Tue, 30 Jul 2019 15:43:31 +0000 (17:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2019 22:00:00 +0000 (15:00 -0700)
commitb89d882dc9fc279c8acbf1df71d51b22394186d5
tree7e359817fe62901df3e5c1d8e58504ecf7f8ae44
parent473c7391ce731adb482c03e420964676ed8b494d
vsock/virtio: reduce credit update messages

In order to reduce the number of credit update messages,
we send them only when the space available seen by the
transmitter is less than VIRTIO_VSOCK_MAX_PKT_BUF_SIZE.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/virtio_vsock.h
net/vmw_vsock/virtio_transport_common.c