MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx4_mb2mp

Function mlx4_mb2mp

dpdk/drivers/net/mlx4/mlx4_rxtx.h:181–187  ·  view source on GitHub ↗

* Get Memory Pool (MP) from mbuf. If mbuf is indirect, the pool from which the * cloned mbuf is allocated is returned instead. * * @param buf * Pointer to mbuf. * * @return * Memory pool where data is located for given mbuf. */

Source from the content-addressed store, hash-verified

179 * Memory pool where data is located for given mbuf.
180 */
181static inline struct rte_mempool *
182mlx4_mb2mp(struct rte_mbuf *buf)
183{
184 if (unlikely(RTE_MBUF_CLONED(buf)))
185 return rte_mbuf_from_indirect(buf)->pool;
186 return buf->pool;
187}
188
189/**
190 * Query LKey from a packet buffer for Rx. No need to flush local caches for Rx

Callers 1

mlx4_tx_mb2mr_bhFunction · 0.85

Calls 1

rte_mbuf_from_indirectFunction · 0.85

Tested by

no test coverage detected