net/virtio: add barriers for extra descriptors on Rx split
authorIlya Maximets <i.maximets@samsung.com>
Thu, 24 Jan 2019 16:59:01 +0000 (19:59 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Feb 2019 18:27:07 +0000 (19:27 +0100)
commit23d25f1a40175343c8a27d539d47fecef477ecf5
tree99ceaaaac88c43934e839ded520db80272a4f506
parent3eb50f0c7979a471c5ec9699ad8859982eb17b92
net/virtio: add barriers for extra descriptors on Rx split

There should be read barrier between checking VIRTQUEUE_NUSED (reading
the used->idx) and reading these descriptors. It's done for the first
checks at the beginning of these functions but missed while checking
for extra required descriptors.

Fixes: e5f456a98d3c ("net/virtio: support in-order Rx and Tx")
Fixes: 13ce5e7eb94f ("virtio: mergeable buffers")
Cc: stable@dpdk.org
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx.c