vhost: replace SMP with thread fence for control path
authorJoyce Kong <joyce.kong@arm.com>
Mon, 21 Dec 2020 15:50:33 +0000 (23:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 17:07:56 +0000 (18:07 +0100)
commita33c3584f36083063b0faf1d41251cd75bee921b
tree8d33b36c511186690f21d895a1cf55be0c5437e3
parent5faf0a9c54e33bdf4de9a26f11290822695f0835
vhost: replace SMP with thread fence for control path

Simply replace the smp barriers with atomic thread fence for vhost control
path, if there are no synchronization points.

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>
lib/librte_vhost/vhost.c
lib/librte_vhost/vhost.h
lib/librte_vhost/vhost_user.c
lib/librte_vhost/virtio_net.c