Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
Dmlx5hws_context.c23 struct mlx5hws_pool_attr pool_attr = {0}; in hws_context_pools_init() local
37 pool_attr.pool_type = MLX5HWS_POOL_TYPE_STC; in hws_context_pools_init()
38 pool_attr.flags = MLX5HWS_POOL_FLAGS_FOR_STC_POOL; in hws_context_pools_init()
40 pool_attr.alloc_log_sz = max(max_log_sz, ctx->caps->stc_alloc_log_gran); in hws_context_pools_init()
43 pool_attr.table_type = i; in hws_context_pools_init()
44 ctx->stc_pool[i] = mlx5hws_pool_create(ctx, &pool_attr); in hws_context_pools_init()
Dmlx5hws_matcher.c546 struct mlx5hws_pool_attr pool_attr = {0}; in hws_matcher_bind_at_idx() local
553 pool_attr.table_type = tbl->type; in hws_matcher_bind_at_idx()
554 pool_attr.pool_type = MLX5HWS_POOL_TYPE_STE; in hws_matcher_bind_at_idx()
555 pool_attr.flags = MLX5HWS_POOL_FLAGS_FOR_STE_ACTION_POOL; in hws_matcher_bind_at_idx()
556 pool_attr.alloc_log_sz = ilog2(roundup_pow_of_two(action_ste->max_stes)) + in hws_matcher_bind_at_idx()
558 hws_matcher_set_pool_attr(&pool_attr, matcher); in hws_matcher_bind_at_idx()
559 action_ste->pool = mlx5hws_pool_create(ctx, &pool_attr); in hws_matcher_bind_at_idx()
671 struct mlx5hws_pool_attr pool_attr = {0}; in hws_matcher_bind_mt() local
685 pool_attr.table_type = matcher->tbl->type; in hws_matcher_bind_mt()
686 pool_attr.pool_type = MLX5HWS_POOL_TYPE_STE; in hws_matcher_bind_mt()
[all …]
Dmlx5hws_pool.c586 mlx5hws_pool_create(struct mlx5hws_context *ctx, struct mlx5hws_pool_attr *pool_attr) in mlx5hws_pool_create() argument
596 pool->type = pool_attr->pool_type; in mlx5hws_pool_create()
597 pool->alloc_log_sz = pool_attr->alloc_log_sz; in mlx5hws_pool_create()
598 pool->flags = pool_attr->flags; in mlx5hws_pool_create()
599 pool->tbl_type = pool_attr->table_type; in mlx5hws_pool_create()
600 pool->opt_type = pool_attr->opt_type; in mlx5hws_pool_create()
612 pool->alloc_log_sz = pool_attr->alloc_log_sz; in mlx5hws_pool_create()
Dmlx5hws_pool.h128 struct mlx5hws_pool_attr *pool_attr);
Dmlx5hws_action.c1587 struct mlx5hws_pool_attr pool_attr = {0}; in hws_action_create_dest_match_range_table() local
1606 pool_attr.table_type = MLX5HWS_TABLE_TYPE_FDB; in hws_action_create_dest_match_range_table()
1607 pool_attr.pool_type = MLX5HWS_POOL_TYPE_STE; in hws_action_create_dest_match_range_table()
1608 pool_attr.flags = MLX5HWS_POOL_FLAGS_FOR_STE_ACTION_POOL; in hws_action_create_dest_match_range_table()
1609 pool_attr.alloc_log_sz = 1; in hws_action_create_dest_match_range_table()
1610 table_ste->pool = mlx5hws_pool_create(ctx, &pool_attr); in hws_action_create_dest_match_range_table()