* Get one object from the mempool. * * This function calls the multi-consumers or the single-consumer * version, depending on the default behavior that was specified at * mempool creation (see flags). * * If cache is enabled, objects will be retrieved first from cache, * subsequently from the common pool. Note that it can return -ENOENT when * the local cache and common pool are empty, eve
| 1696 | * - -ENOENT: Not enough entries in the mempool; no object is retrieved. |
| 1697 | */ |
| 1698 | static __rte_always_inline int |
| 1699 | rte_mempool_get(struct rte_mempool *mp, void **obj_p) |
| 1700 | { |
| 1701 | return rte_mempool_get_bulk(mp, obj_p, 1); |
| 1702 | } |
| 1703 | |
| 1704 | /** |
| 1705 | * Get a contiguous blocks of objects from the mempool. |