Always use the virtio variants which support the platform
memory ordering.
Fixes:
9230ab8d7913 ("net/virtio: support platform memory ordering")
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
vq->vq_desc_head_idx = dxp->next;
if (vq->vq_desc_head_idx == VQ_RING_DESC_CHAIN_END)
vq->vq_desc_tail_idx = vq->vq_desc_head_idx;
- rte_smp_wmb();
+ virtio_wmb(hw->weak_barriers);
start_dp[idx].flags = flags;
if (++vq->vq_avail_idx >= vq->vq_nentries) {
vq->vq_avail_idx -= vq->vq_nentries;
vq->vq_avail_idx = idx;
- rte_smp_wmb();
+ virtio_wmb(vq->hw->weak_barriers);
head_dp->flags = head_flags;
}