src/dpdk/lib/librte_mbuf/rte_mbuf.h
static inline char *
rte_mbuf_to_baddr(struct rte_mbuf *md)
{
#ifdef ALLOW_EXPERIMENTAL_API
	return rte_mbuf_buf_addr(md, md->pool);
#else
	char *buffer_addr;
	buffer_addr = (char *)md + sizeof(*md) + rte_pktmbuf_priv_size(md->pool);
	return buffer_addr;
#endif
}
/**
 * Return address of buffer embedded in the given mbuf.
 *
 * @note: Accessing mempool pointer of a mbuf is expensive because the
 * pointer is stored in the 2nd cache line of mbuf. If mempool is known, it
 * is better not to reference the mempool pointer in mbuf but calling
 * rte_mbuf_buf_addr() would be more efficient.
 *
 * @param md
 *   The pointer to the mbuf.
 * @return
 *   The address of the data buffer owned by the mbuf.
 */
Return address of buffer embedded in the given mbuf.
@note: Accessing mempool pointer of a mbuf is expensive because the
pointer is stored in the 2nd cache line of mbuf. If mempool is known, it
is better not to reference the mempool pointer in mbuf but calling
rte_mbuf_buf_addr() would be more efficient.

@param md
The pointer to the mbuf.
@return
The address of the data buffer owned by the mbuf.
Return address of buffer embedded in the given mbuf . @note : Accessing mempool pointer of a mbuf is expensive because the pointer is stored in the 2nd cache line of mbuf . If mempool is known it is better not to reference the mempool pointer in mbuf but calling rte_mbuf_buf_addr () would be more efficient . @param md The pointer to the mbuf . @return The address of the data buffer owned by the mbuf .
static inline char *
rte_mbuf_to_baddr(struct rte_mbuf *md)
{
#ifdef ALLOW_EXPERIMENTAL_API
	return rte_mbuf_buf_addr(md, md->pool);
#else
	char *buffer_addr;
	buffer_addr = (char *)md + sizeof(*md) + rte_pktmbuf_priv_size(md->pool);
	return buffer_addr;
#endif
}
static inline char * rte_mbuf_to_baddr ( struct rte_mbuf * md ) { #ifdef ALLOW_EXPERIMENTAL_API return rte_mbuf_buf_addr ( md , md -> pool ) ; #else char * buffer_addr ; buffer_addr = ( char * ) md + sizeof ( * md ) + rte_pktmbuf_priv_size ( md -> pool ) ; return buffer_addr ; #endif }
Return address of buffer embedded in the given mbuf.
Return address of buffer embedded in the given mbuf .