OSDN Git Service

virtio/vsock: allocate multiple skbuffs on tx
authorArseniy Krasnov <avkrasnov@sberdevices.ru>
Sat, 25 Mar 2023 22:03:52 +0000 (01:03 +0300)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 28 Mar 2023 10:03:50 +0000 (12:03 +0200)
commitb68ffb1b3bee3762f7579bdcc9ca3d415ed0b9b4
treea4378811c95b1b4cdd513c91619d69834c6bc30d
parent4cee0fb9cc4b5477637fdeb2e965f5fc7d624622
virtio/vsock: allocate multiple skbuffs on tx

This adds small optimization for tx path: instead of allocating single
skbuff on every call to transport, allocate multiple skbuff's until
credit space allows, thus trying to send as much as possible data without
return to af_vsock.c.

Signed-off-by: Arseniy Krasnov <AVKrasnov@sberdevices.ru>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/vmw_vsock/virtio_transport_common.c