[dpdk-dev,1/4] librte_port: modify macros to access packet meta-data
Commit Message
From: Fan Zhang <roy.fan.zhang@intel.com>
This patch relates to ABI change proposed for librte_port. Macros to
access the packet meta-data stored within the packet buffer has been
adjusted to cover the packet mbuf structure.
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
---
lib/librte_port/rte_port.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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) \