* Put one object back in the mempool. * * This function calls the multi-producer or the single-producer * version depending on the default behavior that was specified at * mempool creation time (see flags). * * @param mp * A pointer to the mempool structure. * @param obj * A pointer to the object to be added. */
| 1474 | * A pointer to the object to be added. |
| 1475 | */ |
| 1476 | static __rte_always_inline void |
| 1477 | rte_mempool_put(struct rte_mempool *mp, void *obj) |
| 1478 | { |
| 1479 | rte_mempool_put_bulk(mp, &obj, 1); |
| 1480 | } |
| 1481 | |
| 1482 | /** |
| 1483 | * @internal Get several objects from the mempool; used internally. |