From: Sergio Gonzalez Monroy Date: Wed, 19 Nov 2014 12:26:25 +0000 (+0000) Subject: xenvirt: fix reference to old mbuf field X-Git-Tag: spdx-start~10137 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=89a233209e8d56a4e39140c36e6e0a6d44f2232a;p=dpdk.git xenvirt: fix reference to old mbuf field Since commit 08b563ffb19 ("mbuf: replace data pointer by an offset"), data is not an mbuf field anymore. Signed-off-by: Sergio Gonzalez Monroy Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_xenvirt/virtqueue.h b/lib/librte_pmd_xenvirt/virtqueue.h index d8717fe20c..34a24fc5da 100644 --- a/lib/librte_pmd_xenvirt/virtqueue.h +++ b/lib/librte_pmd_xenvirt/virtqueue.h @@ -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 };