MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx5_ipool_get_next

Function mlx5_ipool_get_next

dpdk/drivers/net/mlx5/mlx5_utils.c:794–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792}
793
794void *
795mlx5_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
813void
814mlx5_ipool_dump(struct mlx5_indexed_pool *pool)

Callers 1

flow_hw_table_destroyFunction · 0.85

Calls 3

mlx5_ipool_getFunction · 0.85

Tested by

no test coverage detected