]> git.proxmox.com Git - mirror_qemu.git/commit
vhost: Rename last_index to vq_index_end
authorEugenio Pérez <eperezma@redhat.com>
Thu, 4 Nov 2021 08:56:24 +0000 (09:56 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Nov 2021 08:13:05 +0000 (03:13 -0500)
commit245cf2c24eb0d5a4fe75151e1794aa5cd53b130d
treeea4a73d3b5fff36ab56f167309941663fe095aa0
parentb66cecb238d065628b85a18357d28d21618a4580
vhost: Rename last_index to vq_index_end

The doc of this field pointed out that last_index is the last vq index.
This is misleading, since it's actually one past the end of the vqs.

Renaming and modifying comment.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20211104085625.2054959-2-eperezma@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/vhost_net.c
hw/virtio/vhost-vdpa.c
include/hw/virtio/vhost.h