net/virtio: add missing read barrier for packed dequeue
[dpdk.git] / drivers / net / virtio / virtqueue.h
index 123bec3..ca9d8e6 100644 (file)
@@ -292,7 +292,6 @@ desc_is_used(struct vring_packed_desc *desc, struct virtqueue *vq)
        return avail == used && used == vq->used_wrap_counter;
 }
 
-
 static inline void
 vring_desc_init_packed(struct virtqueue *vq, int n)
 {
@@ -348,7 +347,6 @@ virtqueue_enable_intr_packed(struct virtqueue *vq)
 {
        uint16_t *event_flags = &vq->ring_packed.driver_event->desc_event_flags;
 
-
        if (vq->event_flags_shadow == RING_EVENT_FLAGS_DISABLE) {
                virtio_wmb(vq->hw->weak_barriers);
                vq->event_flags_shadow = RING_EVENT_FLAGS_ENABLE;