summary refs log tree commit diff stats
path: root/hw/net/virtio-net.c
diff options
context:
space:
mode:
authorPierre Morel <pmorel@linux.vnet.ibm.com>2015-09-10 13:37:10 +0200
committerMichael S. Tsirkin <mst@redhat.com>2015-09-24 13:39:46 +0300
commit50764fc8a382dc17ccc06c0ba29184d0fd73016e (patch)
tree7855029a1aefb2d1654ead3615daefd7e3b0ed93 /hw/net/virtio-net.c
parentfefa4b128de06cec6d513f00ee61e8208aed4a87 (diff)
downloadfocaccia-qemu-50764fc8a382dc17ccc06c0ba29184d0fd73016e.tar.gz
focaccia-qemu-50764fc8a382dc17ccc06c0ba29184d0fd73016e.zip
virtio: right size for virtio_queue_get_avail_size
Being working on dataplane I notice something strange:

virtio_queue_get_avail_size() used a 64bit size index
for the calculation of the available ring size.

It is quite strange but it did work with the old calculation
of the avail ring, at most with performance penalty,
and I wonder where I missed something.

This patch let use a 16bit size as defined in virtio_ring.h

Signed-off-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
0 files changed, 0 insertions, 0 deletions