[dpdk-dev] [PATCH v2 1/4] mbuf: add accessor function for private data area

Andrew Rybchenko arybchenko at solarflare.com
Tue Jun 19 14:56:27 CEST 2018


On 06/19/2018 02:35 AM, Dan Gora wrote:
> Add an inline accessor function to return the starting address of
> the private data area in the supplied mbuf.
>
> This allows applications to easily access the private data area between
> the struct rte_mbuf and the data buffer in the specified mbuf without
> creating private macros or accessor functions.
>
> No checks are made to ensure that a private data area actually exists
> in the buffer.
>
> Signed-off-by: Dan Gora <dg at adax.com>

Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>



More information about the dev mailing list