Home
last modified time | relevance | path

Searched refs:FT_POOLS (Results 1 – 1 of 1) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_chains.c35 static const unsigned int FT_POOLS[] = { 4 * 1024 * 1024, variable
57 int ft_left[ARRAY_SIZE(FT_POOLS)];
177 for (i = ARRAY_SIZE(FT_POOLS) - 1; i >= 0; i--) { in mlx5_chains_get_avail_sz_from_pool()
178 if (ft_pool_left(chains)[i] && FT_POOLS[i] > desired_size) { in mlx5_chains_get_avail_sz_from_pool()
187 return FT_POOLS[found_i]; in mlx5_chains_get_avail_sz_from_pool()
198 for (i = ARRAY_SIZE(FT_POOLS) - 1; i >= 0; i--) { in mlx5_chains_put_sz_to_pool()
199 if (sz == FT_POOLS[i]) { in mlx5_chains_put_sz_to_pool()
213 for (i = ARRAY_SIZE(FT_POOLS) - 1; i >= 0; i--) in mlx5_chains_init_sz_pool()
215 FT_POOLS[i] <= ft_max ? FT_SIZE / FT_POOLS[i] : 0; in mlx5_chains_init_sz_pool()