* 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. */
| 213 | * The address of the direct mbuf corresponding to buffer_addr. |
| 214 | */ |
| 215 | static inline struct rte_mbuf * |
| 216 | rte_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. |
no outgoing calls
no test coverage detected