Re: [dpdk-dev] [PATCH v1 4/8] vhost: remove unnecessary smp barrier for avail idx

2021-01-07 Thread Maxime Coquelin
On 12/21/20 4:50 PM, Joyce Kong wrote: > The ordering between avail index and desc reads has been enforced > by load-acquire for split vring, so smp_rmb barrier is not needed > behind it. > > Signed-off-by: Joyce Kong > Reviewed-by: Ruifeng Wang > --- > lib/librte_vhost/virtio_net.c | 7 ++--

[dpdk-dev] [PATCH v1 4/8] vhost: remove unnecessary smp barrier for avail idx

2020-12-21 Thread Joyce Kong
The ordering between avail index and desc reads has been enforced by load-acquire for split vring, so smp_rmb barrier is not needed behind it. Signed-off-by: Joyce Kong Reviewed-by: Ruifeng Wang --- lib/librte_vhost/virtio_net.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff