Jason Wang e3b56cdd43 vhost: try avoiding avail index access when getting descriptor
If last avail idx is not equal to cached avail idx, we're sure there's
still available buffers in the virtqueue so there's no need to re-read
avail idx. So let's skip this to avoid unnecessary userspace memory
access and memory barrier. Pktgen test show about 3% improvement on rx
pps.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2017-02-27 20:37:27 +02:00
..
2016-08-02 16:54:28 +03:00
2016-08-02 16:54:28 +03:00
2016-08-02 02:57:30 +03:00
2016-09-05 08:04:07 +02:00
2010-12-09 16:00:21 +02:00
2016-12-16 00:13:36 +02:00