net/virtio: replace SMP barrier with IO barrier
authorJoyce Kong <joyce.kong@arm.com>
Mon, 21 Dec 2020 14:23:19 +0000 (22:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 17:07:55 +0000 (18:07 +0100)
commitf1b9cf07d3f4fd2111c9044a05188a8a090cfae0
treeb0a481c3f9f4b59d97d6f2cc61aa7a4164184007
parentf875cbfd47ce9181ac421d8b57703df1c0d5f49f
net/virtio: replace SMP barrier with IO barrier

Replace rte_smp_wmb/rmb with rte_io_wmb/rmb as they are the same on x86
and ppc platforms. Then, for function virtqueue_fetch_flags_packed/
virtqueue_store_flags_packed, the if and else branch are still identical
for the platforms except Arm.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtqueue.h