Skip to contentSkip to conversation

xenvirt: fix reference to old mbuf field

PATCH Applied Sergio Gonzalez Monroy 2 participants 2 messages Nov 19, 2014 – Nov 24, 2014 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xenvirt: fix reference to old mbuf field

data is not an mbuf field anymore.

---
 lib/librte_pmd_xenvirt/virtqueue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_pmd_xenvirt/virtqueue.h +1 -1
index d8717fe..34a24fc 100644
@@ -54,7 +54,7 @@
  * rather than gpa<->hva in virito spec.
  */
 #define RTE_MBUF_DATA_DMA_ADDR(mb) \
-	((uint64_t)((mb)->data))
+	rte_pktmbuf_mtod(mb, uint64_t)
 
 enum { VTNET_RQ = 0, VTNET_TQ = 1, VTNET_CQ = 2 };
 
Signature · 1 line
1.9.3