net/virtio: fix incorrect cast of void *
[dpdk.git] / drivers / net / virtio / virtqueue.h
index 235f8c5..2305d91 100644 (file)
@@ -79,7 +79,7 @@ struct rte_mbuf;
 #define VIRTIO_MBUF_ADDR(mb, vq) \
        ((uint64_t)(*(uintptr_t *)((uintptr_t)(mb) + (vq)->offset)))
 #else
-#define VIRTIO_MBUF_ADDR(mb, vq) ((mb)->buf_physaddr)
+#define VIRTIO_MBUF_ADDR(mb, vq) ((mb)->buf_iova)
 #endif
 
 /**
@@ -203,8 +203,8 @@ struct virtqueue {
                struct virtnet_ctl cq;
        };
 
-       phys_addr_t vq_ring_mem; /**< physical address of vring,
-                                 * or virtual address for virtio_user. */
+       rte_iova_t vq_ring_mem; /**< physical address of vring,
+                                * or virtual address for virtio_user. */
 
        /**
         * Head of the free chain in the descriptor table. If