]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_ring: remove unnecessary to_vvq call in vring hot path
authorXianting Tian <xianting.tian@linux.alibaba.com>
Mon, 28 Mar 2022 10:58:16 +0000 (18:58 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 31 May 2022 16:44:24 +0000 (12:44 -0400)
commit23786487e86e5f5d91b238e450ae4e029c2877d1
treedddb3ba8254c0f8ecf7b69a1ec55b8befdc44107
parent3f013d2b2d74784b4023ba50961e2750cc7f55de
virtio_ring: remove unnecessary to_vvq call in vring hot path

It passes '_vq' to virtqueue_use_indirect(), which still calls
to_vvq to get 'vq', let's directly pass 'vq'. It can avoid
unnecessary call of to_vvq in hot path.

Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com>
Message-Id: <20220328105817.1028065-1-xianting.tian@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
drivers/virtio/virtio_ring.c