* Put several objects back in the mempool. * * @param mp * A pointer to the mempool structure. * @param obj_table * A pointer to a table of void * pointers (objects). * @param n * The number of objects to add in the mempool from the obj_table. * @param cache * A pointer to a mempool cache structure. May be NULL if not needed. */
| 1429 | * A pointer to a mempool cache structure. May be NULL if not needed. |
| 1430 | */ |
| 1431 | static __rte_always_inline void |
| 1432 | rte_mempool_generic_put(struct rte_mempool *mp, void * const *obj_table, |
| 1433 | unsigned int n, struct rte_mempool_cache *cache) |
| 1434 | { |
| 1435 | rte_mempool_trace_generic_put(mp, obj_table, n, cache); |
| 1436 | RTE_MEMPOOL_CHECK_COOKIES(mp, obj_table, n, 0); |
| 1437 | rte_mempool_do_generic_put(mp, obj_table, n, cache); |
| 1438 | } |
| 1439 | |
| 1440 | /** |
| 1441 | * Put several objects back in the mempool. |