aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-02-07 15:49:50 +0800
committerMichael S. Tsirkin <mst@redhat.com>2017-02-27 20:37:27 +0200
commite3b56cdd4351f0e227d4d847eeadff4c82aef1b9 (patch)
tree45d602addb89b2cd3cf1617ecb85275dad7d3f9e /drivers/virtio
parentvirtio_mmio: expose header to userspace (diff)
downloadlinux-dev-e3b56cdd4351f0e227d4d847eeadff4c82aef1b9.tar.xz
linux-dev-e3b56cdd4351f0e227d4d847eeadff4c82aef1b9.zip
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>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions