net/virtio: add missing read barrier for packed dequeue
authorIlya Maximets <i.maximets@samsung.com>
Thu, 24 Jan 2019 16:59:02 +0000 (19:59 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Feb 2019 18:27:07 +0000 (19:27 +0100)
commit4b058fdd27ceac277aa715df6f6bb0f7b37b150b
treea4b40a01036fa470234f7f8c0b326df4da665226
parent23d25f1a40175343c8a27d539d47fecef477ecf5
net/virtio: add missing read barrier for packed dequeue

Read barrier is required between reading the flags (desc_is_used)
and the content of descriptor to ensure the ordering.
Otherwise, speculative read of desc.id could be reordered with
reading of the desc.flags.

Fixes: a76290c8f1cf ("net/virtio: implement Rx path for packed queues")
Cc: stable@dpdk.org
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx.c