* @internal Get the mempool ops struct from its index. * * @param ops_index * The index of the ops struct in the ops struct table. It must be a valid * index: (0 <= idx < num_ops). * @return * The pointer to the ops struct in the table. */
| 739 | * The pointer to the ops struct in the table. |
| 740 | */ |
| 741 | static inline struct rte_mempool_ops * |
| 742 | rte_mempool_get_ops(int ops_index) |
| 743 | { |
| 744 | RTE_VERIFY((ops_index >= 0) && (ops_index < RTE_MEMPOOL_MAX_OPS_IDX)); |
| 745 | |
| 746 | return &rte_mempool_ops_table.ops[ops_index]; |
| 747 | } |
| 748 | |
| 749 | /** |
| 750 | * @internal Wrapper for mempool_ops alloc callback. |
no outgoing calls