* 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. */
| 179 | * Memory pool where data is located for given mbuf. |
| 180 | */ |
| 181 | static inline struct rte_mempool * |
| 182 | mlx4_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 |
no test coverage detected