net/virtio: replace full barrier with relaxed ones for Arm
Relax the full write barriers to one-way barriers for virtio control path for Arm platform 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>
This commit is contained in:
parent
f1b9cf07d3
commit
e51a474ced
@ -203,8 +203,8 @@ virtio_send_command_packed(struct virtnet_ctl *cvq,
|
||||
vq->vq_packed.cached_flags ^= VRING_PACKED_DESC_F_AVAIL_USED;
|
||||
}
|
||||
|
||||
virtio_wmb(vq->hw->weak_barriers);
|
||||
desc[head].flags = VRING_DESC_F_NEXT | flags;
|
||||
virtqueue_store_flags_packed(&desc[head], VRING_DESC_F_NEXT | flags,
|
||||
vq->hw->weak_barriers);
|
||||
|
||||
virtio_wmb(vq->hw->weak_barriers);
|
||||
virtqueue_notify(vq);
|
||||
|
Loading…
Reference in New Issue
Block a user