Searched refs:stc_attr (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | cmd.c | 430 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 …]
|
| H A D | action.c | 84 struct mlx5hws_cmd_stc_modify_attr stc_attr = {0}; in hws_action_get_shared_stc_nic() local 102 stc_attr.action_type = MLX5_IFC_STC_ACTION_TYPE_HEADER_REMOVE; in hws_action_get_shared_stc_nic() 103 stc_attr.action_offset = MLX5HWS_ACTION_OFFSET_DW5; in hws_action_get_shared_stc_nic() 104 stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_IGNORE; in hws_action_get_shared_stc_nic() 105 stc_attr.remove_header.decap = 0; in hws_action_get_shared_stc_nic() 106 stc_attr.remove_header.start_anchor = MLX5_HEADER_ANCHOR_PACKET_START; in hws_action_get_shared_stc_nic() 107 stc_attr.remove_header.end_anchor = MLX5_HEADER_ANCHOR_IPV6_IPV4; in hws_action_get_shared_stc_nic() 110 stc_attr.action_type = MLX5_IFC_STC_ACTION_TYPE_REMOVE_WORDS; in hws_action_get_shared_stc_nic() 111 stc_attr.action_offset = MLX5HWS_ACTION_OFFSET_DW5; in hws_action_get_shared_stc_nic() 112 stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_ALWAYS; in hws_action_get_shared_stc_nic() [all …]
|
| H A D | action_ste_pool.c | 116 struct mlx5hws_cmd_stc_modify_attr stc_attr = { 0 }; in hws_action_ste_table_create_stc() local 118 stc_attr.action_offset = MLX5HWS_ACTION_OFFSET_HIT; in hws_action_ste_table_create_stc() 119 stc_attr.action_type = MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_STE_TABLE; in hws_action_ste_table_create_stc() 120 stc_attr.reparse_mode = MLX5_IFC_STC_REPARSE_IGNORE; in hws_action_ste_table_create_stc() 121 stc_attr.ste_table.ste_pool = action_tbl->pool; in hws_action_ste_table_create_stc() 122 stc_attr.ste_table.match_definer_id = ctx->caps->trivial_match_definer; in hws_action_ste_table_create_stc() 124 return mlx5hws_action_alloc_single_stc(ctx, &stc_attr, in hws_action_ste_table_create_stc()
|
| H A D | pool.c | 39 struct mlx5hws_cmd_stc_create_attr stc_attr; in hws_pool_create_one_resource() local 55 stc_attr.log_obj_range = log_range; in hws_pool_create_one_resource() 56 stc_attr.table_type = fw_ft_type; in hws_pool_create_one_resource() 57 ret = mlx5hws_cmd_stc_create(pool->ctx->mdev, &stc_attr, &obj_id); in hws_pool_create_one_resource()
|
| H A D | cmd.h | 268 struct mlx5hws_cmd_stc_create_attr *stc_attr, 273 struct mlx5hws_cmd_stc_modify_attr *stc_attr);
|