Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
H A Dmlx5hws_context.c44 ctx->stc_pool[i] = mlx5hws_pool_create(ctx, &pool_attr); in hws_context_pools_init()
45 if (!ctx->stc_pool[i]) { in hws_context_pools_init()
56 if (ctx->stc_pool[i]) in hws_context_pools_init()
57 mlx5hws_pool_destroy(ctx->stc_pool[i]); in hws_context_pools_init()
70 if (ctx->stc_pool[i]) in hws_context_pools_uninit()
71 mlx5hws_pool_destroy(ctx->stc_pool[i]); in hws_context_pools_uninit()
H A Dmlx5hws_debug.c385 struct mlx5hws_pool *stc_pool; in hws_debug_dump_context_stc() local
391 stc_pool = ctx->stc_pool[i]; in hws_debug_dump_context_stc()
394 if (!stc_pool) in hws_debug_dump_context_stc()
397 if (stc_pool->resource[0]) { in hws_debug_dump_context_stc()
399 stc_pool->resource[0]); in hws_debug_dump_context_stc()
404 if (i == MLX5HWS_TABLE_TYPE_FDB && stc_pool->mirror_resource[0]) { in hws_debug_dump_context_stc()
406 stc_pool->mirror_resource[0]); in hws_debug_dump_context_stc()
H A Dmlx5hws_action.c324 struct mlx5hws_pool *stc_pool = ctx->stc_pool[table_type]; in mlx5hws_action_alloc_single_stc() local
330 ret = mlx5hws_pool_chunk_alloc(stc_pool, stc); in mlx5hws_action_alloc_single_stc()
342 obj_0_id = mlx5hws_pool_chunk_get_base_id(stc_pool, stc); in mlx5hws_action_alloc_single_stc()
358 obj_1_id = mlx5hws_pool_chunk_get_base_mirror_id(stc_pool, stc); in mlx5hws_action_alloc_single_stc()
381 mlx5hws_pool_chunk_free(stc_pool, stc); in mlx5hws_action_alloc_single_stc()
390 struct mlx5hws_pool *stc_pool = ctx->stc_pool[table_type]; in mlx5hws_action_free_single_stc() local
398 obj_id = mlx5hws_pool_chunk_get_base_id(stc_pool, stc); in mlx5hws_action_free_single_stc()
402 obj_id = mlx5hws_pool_chunk_get_base_mirror_id(stc_pool, stc); in mlx5hws_action_free_single_stc()
406 mlx5hws_pool_chunk_free(stc_pool, stc); in mlx5hws_action_free_single_stc()
1588 struct mlx5hws_pool *ste_pool, *stc_pool; in hws_action_create_dest_match_range_table() local
[all …]
H A Dmlx5hws_context.h40 struct mlx5hws_pool *stc_pool[MLX5HWS_TABLE_TYPE_MAX]; member
H A Dmlx5hws_matcher.c238 struct mlx5hws_pool *ste_pool, *stc_pool; in hws_matcher_create_rtc() local
321 stc_pool = ctx->stc_pool[tbl->type]; in hws_matcher_create_rtc()
323 obj_id = mlx5hws_pool_chunk_get_base_id(stc_pool, &default_stc->default_hit); in hws_matcher_create_rtc()
338 obj_id = mlx5hws_pool_chunk_get_base_mirror_id(stc_pool, &default_stc->default_hit); in hws_matcher_create_rtc()