X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_port%2Frte_port.h;h=c3c534879a4a1f79352c3f79bd2788c2ded3ed35;hb=8bf7a79d508253d417d1088f35279fabb539ddd9;hp=396c7e91bf70da0c6668aefa2bb473240713dbab;hpb=45c24d8320f25a204935c06ee1b86bc48046a1d1;p=dpdk.git diff --git a/lib/librte_port/rte_port.h b/lib/librte_port/rte_port.h index 396c7e91bf..c3c534879a 100644 --- a/lib/librte_port/rte_port.h +++ b/lib/librte_port/rte_port.h @@ -42,7 +42,7 @@ extern "C" { * @file * RTE Port * - * This tool is part of the Intel DPDK Packet Framework tool suite and provides + * This tool is part of the DPDK Packet Framework tool suite and provides * a standard interface to implement different types of packet ports. * ***/ @@ -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) \