vhost: prefetch descriptor after the read barrier
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Wed, 19 Dec 2018 08:21:12 +0000 (09:21 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 21 Dec 2018 15:22:41 +0000 (16:22 +0100)
commitaaf8979d6fab6dc1742aee512275879a50d2084b
tree9ac2a556ebf62b40634f4164731a03660a3541ce
parent33e12d63d156b99aed2733e6aae97d53931e8e43
vhost: prefetch descriptor after the read barrier

This patch moves the prefetch after the available index
is read to avoid prefetching a descriptor not available yet.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/virtio_net.c