Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dpool.c345 mlx5hws_pool_create(struct mlx5hws_context *ctx, struct mlx5hws_pool_attr *pool_attr) in mlx5hws_pool_create() argument
355 pool->type = pool_attr->pool_type; in mlx5hws_pool_create()
356 pool->alloc_log_sz = pool_attr->alloc_log_sz; in mlx5hws_pool_create()
357 pool->flags = pool_attr->flags; in mlx5hws_pool_create()
358 pool->tbl_type = pool_attr->table_type; in mlx5hws_pool_create()
359 pool->opt_type = pool_attr->opt_type; in mlx5hws_pool_create()
366 pool->alloc_log_sz = pool_attr->alloc_log_sz; in mlx5hws_pool_create()
367 pool->available_elems = 1 << pool_attr->alloc_log_sz; in mlx5hws_pool_create()
H A Dcontext.c23 struct mlx5hws_pool_attr pool_attr = {0}; in hws_context_pools_init() local
36 pool_attr.pool_type = MLX5HWS_POOL_TYPE_STC; in hws_context_pools_init()
38 pool_attr.alloc_log_sz = max(max_log_sz, ctx->caps->stc_alloc_log_gran); in hws_context_pools_init()
40 pool_attr.table_type = MLX5HWS_TABLE_TYPE_FDB; in hws_context_pools_init()
41 ctx->stc_pool = mlx5hws_pool_create(ctx, &pool_attr); in hws_context_pools_init()
H A Daction_ste_pool.c26 struct mlx5hws_pool_attr pool_attr = { 0 }; in hws_action_ste_table_create_pool() local
28 pool_attr.pool_type = MLX5HWS_POOL_TYPE_STE; in hws_action_ste_table_create_pool()
29 pool_attr.table_type = MLX5HWS_TABLE_TYPE_FDB; in hws_action_ste_table_create_pool()
30 pool_attr.flags = MLX5HWS_POOL_FLAG_BUDDY; in hws_action_ste_table_create_pool()
31 pool_attr.opt_type = opt; in hws_action_ste_table_create_pool()
32 pool_attr.alloc_log_sz = log_sz; in hws_action_ste_table_create_pool()
34 action_tbl->pool = mlx5hws_pool_create(ctx, &pool_attr); in hws_action_ste_table_create_pool()
H A Daction.c1591 struct mlx5hws_pool_attr pool_attr = {0}; in hws_action_create_dest_match_range_table() local
1609 pool_attr.table_type = MLX5HWS_TABLE_TYPE_FDB; in hws_action_create_dest_match_range_table()
1610 pool_attr.pool_type = MLX5HWS_POOL_TYPE_STE; in hws_action_create_dest_match_range_table()
1611 pool_attr.alloc_log_sz = 1; in hws_action_create_dest_match_range_table()
1612 table_ste->pool = mlx5hws_pool_create(ctx, &pool_attr); in hws_action_create_dest_match_range_table()