]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit27788011a88cf2c2770e97d43c8fe884b2be7231
tree7e359817fe62901df3e5c1d8e58504ecf7f8ae44
parent9850db91a7555aae3db7622b7aee78d3748ec9db
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