]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_port/rte_port.h
vhost-user: support protocol features
[dpdk.git] / lib / librte_port / rte_port.h
index 396c7e91bf70da0c6668aefa2bb473240713dbab..00b97a91e74cadc80a68a6a95b0f8b5cd1ef489c 100644 (file)
@@ -55,7 +55,7 @@ extern "C" {
  * just beyond the end of the mbuf data structure returned by a port
  */
 #define RTE_MBUF_METADATA_UINT8_PTR(mbuf, offset)          \
-       (&((uint8_t *) &(mbuf)[1])[offset])
+       (&((uint8_t *)(mbuf))[offset])
 #define RTE_MBUF_METADATA_UINT16_PTR(mbuf, offset)         \
        ((uint16_t *) RTE_MBUF_METADATA_UINT8_PTR(mbuf, offset))
 #define RTE_MBUF_METADATA_UINT32_PTR(mbuf, offset)         \