Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
Dmlx5hws_action.c81 struct mlx5hws_cmd_stc_modify_attr stc_attr = {0}; in hws_action_get_shared_stc_nic() local
99 stc_attr.action_type = MLX5_IFC_STC_ACTION_TYPE_HEADER_REMOVE; in hws_action_get_shared_stc_nic()
100 stc_attr.action_offset = MLX5HWS_ACTION_OFFSET_DW5; in hws_action_get_shared_stc_nic()
101 stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_IGNORE; in hws_action_get_shared_stc_nic()
102 stc_attr.remove_header.decap = 0; in hws_action_get_shared_stc_nic()
103 stc_attr.remove_header.start_anchor = MLX5_HEADER_ANCHOR_PACKET_START; in hws_action_get_shared_stc_nic()
104 stc_attr.remove_header.end_anchor = MLX5_HEADER_ANCHOR_IPV6_IPV4; in hws_action_get_shared_stc_nic()
107 stc_attr.action_type = MLX5_IFC_STC_ACTION_TYPE_REMOVE_WORDS; in hws_action_get_shared_stc_nic()
108 stc_attr.action_offset = MLX5HWS_ACTION_OFFSET_DW5; in hws_action_get_shared_stc_nic()
109 stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_ALWAYS; in hws_action_get_shared_stc_nic()
[all …]
Dmlx5hws_cmd.c430 struct mlx5hws_cmd_stc_create_attr *stc_attr, in mlx5hws_cmd_stc_create() argument
444 attr, op_param.create.log_obj_range, stc_attr->log_obj_range); in mlx5hws_cmd_stc_create()
447 MLX5_SET(stc, attr, table_type, stc_attr->table_type); in mlx5hws_cmd_stc_create()
467 struct mlx5hws_cmd_stc_modify_attr *stc_attr, in hws_cmd_stc_modify_set_stc_param() argument
470 switch (stc_attr->action_type) { in hws_cmd_stc_modify_set_stc_param()
472 MLX5_SET(stc_ste_param_flow_counter, stc_param, flow_counter_id, stc_attr->id); in hws_cmd_stc_modify_set_stc_param()
475 MLX5_SET(stc_ste_param_tir, stc_param, tirn, stc_attr->dest_tir_num); in hws_cmd_stc_modify_set_stc_param()
478 MLX5_SET(stc_ste_param_table, stc_param, table_id, stc_attr->dest_table_id); in hws_cmd_stc_modify_set_stc_param()
482 header_modify_pattern_id, stc_attr->modify_header.pattern_id); in hws_cmd_stc_modify_set_stc_param()
484 header_modify_argument_id, stc_attr->modify_header.arg_id); in hws_cmd_stc_modify_set_stc_param()
[all …]
Dmlx5hws_matcher.c543 struct mlx5hws_cmd_stc_modify_attr stc_attr = {0}; in hws_matcher_bind_at_idx() local
573 stc_attr.action_offset = MLX5HWS_ACTION_OFFSET_HIT; in hws_matcher_bind_at_idx()
574 stc_attr.action_type = MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_STE_TABLE; in hws_matcher_bind_at_idx()
575 stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_IGNORE; in hws_matcher_bind_at_idx()
576 stc_attr.ste_table.ste = action_ste->ste; in hws_matcher_bind_at_idx()
577 stc_attr.ste_table.ste_pool = action_ste->pool; in hws_matcher_bind_at_idx()
578 stc_attr.ste_table.match_definer_id = ctx->caps->trivial_match_definer; in hws_matcher_bind_at_idx()
580 ret = mlx5hws_action_alloc_single_stc(ctx, &stc_attr, tbl->type, in hws_matcher_bind_at_idx()
Dmlx5hws_pool.c40 struct mlx5hws_cmd_stc_create_attr stc_attr; in hws_pool_create_one_resource() local
56 stc_attr.log_obj_range = log_range; in hws_pool_create_one_resource()
57 stc_attr.table_type = fw_ft_type; in hws_pool_create_one_resource()
58 ret = mlx5hws_cmd_stc_create(pool->ctx->mdev, &stc_attr, &obj_id); in hws_pool_create_one_resource()
Dmlx5hws_cmd.h271 struct mlx5hws_cmd_stc_create_attr *stc_attr,
276 struct mlx5hws_cmd_stc_modify_attr *stc_attr);
Dmlx5hws_action.h217 struct mlx5hws_cmd_stc_modify_attr *stc_attr,