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

Function rte_mbuf_from_indirect

dpdk/lib/mbuf/rte_mbuf.h:215–219  ·  view source on GitHub ↗

* Return the mbuf owning the data buffer address of an indirect mbuf. * * @param mi * The pointer to the indirect mbuf. * @return * The address of the direct mbuf corresponding to buffer_addr. */

Source from the content-addressed store, hash-verified

213 * The address of the direct mbuf corresponding to buffer_addr.
214 */
215static inline struct rte_mbuf *
216rte_mbuf_from_indirect(struct rte_mbuf *mi)
217{
218 return (struct rte_mbuf *)RTE_PTR_SUB(mi->buf_addr, sizeof(*mi) + mi->priv_size);
219}
220
221/**
222 * Return address of buffer embedded in the given mbuf.

Callers 15

rte_pktmbuf_attachFunction · 0.85
mlx4_mb2mpFunction · 0.85
octeontx_pktmbuf_detachFunction · 0.85
eth_mbuf_to_sg_fdFunction · 0.85
eth_mbuf_to_fdFunction · 0.85
dpaa2_dev_txFunction · 0.85
dpaa2_dev_tx_orderedFunction · 0.85
cn9k_nix_prefree_seg_vecFunction · 0.85
cn9k_nix_xmit_prepareFunction · 0.85
cn9k_nix_prepare_msegFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected