| 792 | } |
| 793 | |
| 794 | void * |
| 795 | mlx5_ipool_get_next(struct mlx5_indexed_pool *pool, uint32_t *pos) |
| 796 | { |
| 797 | uint32_t idx = *pos; |
| 798 | void *entry; |
| 799 | |
| 800 | if (pool->cfg.per_core_cache) |
| 801 | return mlx5_ipool_get_next_cache(pool, pos); |
| 802 | while (idx <= mlx5_trunk_idx_offset_get(pool, pool->n_trunk)) { |
| 803 | entry = mlx5_ipool_get(pool, idx); |
| 804 | if (entry) { |
| 805 | *pos = idx; |
| 806 | return entry; |
| 807 | } |
| 808 | idx++; |
| 809 | } |
| 810 | return NULL; |
| 811 | } |
| 812 | |
| 813 | void |
| 814 | mlx5_ipool_dump(struct mlx5_indexed_pool *pool) |
no test coverage detected