Re: [PATCH v4 1/2] vhost: Rename last_index to vq_index_end

2021-11-06 Thread Juan Quintela
Eugenio Pérez wrote: > 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 Reviewed-by: Juan Quintela

[PATCH v4 1/2] vhost: Rename last_index to vq_index_end

2021-11-04 Thread Eugenio Pérez
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 Acked-by: Jason Wang --- include/hw/virtio/vhost.h | 4 ++-- hw/net/vhost_net.c| 4