diff mbox

[dpdk-dev] xenvirt: fix reference to old mbuf field

Message ID 1416399985-480-1-git-send-email-sergio.gonzalez.monroy@intel.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Sergio Gonzalez Monroy Nov. 19, 2014, 12:26 p.m. UTC
data is not an mbuf field anymore.

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
---
 lib/librte_pmd_xenvirt/virtqueue.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Monjalon Nov. 24, 2014, 3:48 p.m. UTC | #1
> data is not an mbuf field anymore.
> 
> Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>

Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Note: git history is better with commit references in commit log.
Added "Since commit 08b563ffb19 ("mbuf: replace data pointer by an offset"),"

Applied

Thanks
diff mbox

Patch

diff --git a/lib/librte_pmd_xenvirt/virtqueue.h b/lib/librte_pmd_xenvirt/virtqueue.h
index d8717fe..34a24fc 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 };