net/virtio: replace full barrier with thread fence
authorJoyce Kong <joyce.kong@arm.com>
Mon, 21 Dec 2020 14:23:21 +0000 (22:23 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 17:07:55 +0000 (18:07 +0100)
commit240a9941d477fcb3c733cf1667c9ea52b1f9df9c
treebb37002d061ac0307faa3d042f6b92ebdbd69ae7
parente51a474ceda7fbdbb3c1b8ef37794496a86ccdf6
net/virtio: replace full barrier with thread fence

Replace the smp barriers with atomic thread fence for synchronization
between different threads, if there are no load/store operations.

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