From: Itamar Gozlan <igozlan@nvidia.com>
To: <igozlan@nvidia.com>, <erezsh@nvidia.com>, <hamdani@nvidia.com>,
<kliteyn@nvidia.com>, <viacheslavo@nvidia.com>,
<thomas@monjalon.net>, <suanmingm@nvidia.com>,
Dariusz Sosnowski <dsosnowski@nvidia.com>,
Ori Kam <orika@nvidia.com>, Matan Azrad <matan@nvidia.com>
Cc: <dev@dpdk.org>
Subject: [v2 10/10] net/mlx5/hws: typo fix parm to param
Date: Sun, 18 Feb 2024 07:11:24 +0200 [thread overview]
Message-ID: <20240218051125.717011-10-igozlan@nvidia.com> (raw)
In-Reply-To: <20240218051125.717011-1-igozlan@nvidia.com>
Fixing a typo in mlx5dr_cmd.c file, changing a variable name
from stc_parm to stc_param, as short for parameter.
Signed-off-by: Itamar Gozlan <igozlan@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
---
drivers/net/mlx5/hws/mlx5dr_cmd.c | 68 +++++++++++++++----------------
1 file changed, 34 insertions(+), 34 deletions(-)
diff --git a/drivers/net/mlx5/hws/mlx5dr_cmd.c b/drivers/net/mlx5/hws/mlx5dr_cmd.c
index 4676f65d60..fd07028e5f 100644
--- a/drivers/net/mlx5/hws/mlx5dr_cmd.c
+++ b/drivers/net/mlx5/hws/mlx5dr_cmd.c
@@ -453,66 +453,66 @@ mlx5dr_cmd_stc_create(struct ibv_context *ctx,
static int
mlx5dr_cmd_stc_modify_set_stc_param(struct mlx5dr_cmd_stc_modify_attr *stc_attr,
- void *stc_parm)
+ void *stc_param)
{
switch (stc_attr->action_type) {
case MLX5_IFC_STC_ACTION_TYPE_COUNTER:
- MLX5_SET(stc_ste_param_flow_counter, stc_parm, flow_counter_id, stc_attr->id);
+ MLX5_SET(stc_ste_param_flow_counter, stc_param, flow_counter_id, stc_attr->id);
break;
case MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_TIR:
- MLX5_SET(stc_ste_param_tir, stc_parm, tirn, stc_attr->dest_tir_num);
+ MLX5_SET(stc_ste_param_tir, stc_param, tirn, stc_attr->dest_tir_num);
break;
case MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_FT:
- MLX5_SET(stc_ste_param_table, stc_parm, table_id, stc_attr->dest_table_id);
+ MLX5_SET(stc_ste_param_table, stc_param, table_id, stc_attr->dest_table_id);
break;
case MLX5_IFC_STC_ACTION_TYPE_ACC_MODIFY_LIST:
- MLX5_SET(stc_ste_param_header_modify_list, stc_parm,
+ MLX5_SET(stc_ste_param_header_modify_list, stc_param,
header_modify_pattern_id, stc_attr->modify_header.pattern_id);
- MLX5_SET(stc_ste_param_header_modify_list, stc_parm,
+ MLX5_SET(stc_ste_param_header_modify_list, stc_param,
header_modify_argument_id, stc_attr->modify_header.arg_id);
break;
case MLX5_IFC_STC_ACTION_TYPE_HEADER_REMOVE:
- MLX5_SET(stc_ste_param_remove, stc_parm, action_type,
+ MLX5_SET(stc_ste_param_remove, stc_param, action_type,
MLX5_MODIFICATION_TYPE_REMOVE);
- MLX5_SET(stc_ste_param_remove, stc_parm, decap,
+ MLX5_SET(stc_ste_param_remove, stc_param, decap,
stc_attr->remove_header.decap);
- MLX5_SET(stc_ste_param_remove, stc_parm, remove_start_anchor,
+ MLX5_SET(stc_ste_param_remove, stc_param, remove_start_anchor,
stc_attr->remove_header.start_anchor);
- MLX5_SET(stc_ste_param_remove, stc_parm, remove_end_anchor,
+ MLX5_SET(stc_ste_param_remove, stc_param, remove_end_anchor,
stc_attr->remove_header.end_anchor);
break;
case MLX5_IFC_STC_ACTION_TYPE_HEADER_INSERT:
- MLX5_SET(stc_ste_param_insert, stc_parm, action_type,
+ MLX5_SET(stc_ste_param_insert, stc_param, action_type,
MLX5_MODIFICATION_TYPE_INSERT);
- MLX5_SET(stc_ste_param_insert, stc_parm, encap,
+ MLX5_SET(stc_ste_param_insert, stc_param, encap,
stc_attr->insert_header.encap);
- MLX5_SET(stc_ste_param_insert, stc_parm, push_esp,
+ MLX5_SET(stc_ste_param_insert, stc_param, push_esp,
stc_attr->insert_header.push_esp);
- MLX5_SET(stc_ste_param_insert, stc_parm, inline_data,
+ MLX5_SET(stc_ste_param_insert, stc_param, inline_data,
stc_attr->insert_header.is_inline);
- MLX5_SET(stc_ste_param_insert, stc_parm, insert_anchor,
+ MLX5_SET(stc_ste_param_insert, stc_param, insert_anchor,
stc_attr->insert_header.insert_anchor);
/* HW gets the next 2 sizes in words */
- MLX5_SET(stc_ste_param_insert, stc_parm, insert_size,
+ MLX5_SET(stc_ste_param_insert, stc_param, insert_size,
stc_attr->insert_header.header_size / W_SIZE);
- MLX5_SET(stc_ste_param_insert, stc_parm, insert_offset,
+ MLX5_SET(stc_ste_param_insert, stc_param, insert_offset,
stc_attr->insert_header.insert_offset / W_SIZE);
- MLX5_SET(stc_ste_param_insert, stc_parm, insert_argument,
+ MLX5_SET(stc_ste_param_insert, stc_param, insert_argument,
stc_attr->insert_header.arg_id);
break;
case MLX5_IFC_STC_ACTION_TYPE_COPY:
case MLX5_IFC_STC_ACTION_TYPE_SET:
case MLX5_IFC_STC_ACTION_TYPE_ADD:
case MLX5_IFC_STC_ACTION_TYPE_ADD_FIELD:
- *(__be64 *)stc_parm = stc_attr->modify_action.data;
+ *(__be64 *)stc_param = stc_attr->modify_action.data;
break;
case MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_VPORT:
case MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_UPLINK:
- MLX5_SET(stc_ste_param_vport, stc_parm, vport_number,
+ MLX5_SET(stc_ste_param_vport, stc_param, vport_number,
stc_attr->vport.vport_num);
- MLX5_SET(stc_ste_param_vport, stc_parm, eswitch_owner_vhca_id,
+ MLX5_SET(stc_ste_param_vport, stc_param, eswitch_owner_vhca_id,
stc_attr->vport.esw_owner_vhca_id);
- MLX5_SET(stc_ste_param_vport, stc_parm, eswitch_owner_vhca_id_valid, 1);
+ MLX5_SET(stc_ste_param_vport, stc_param, eswitch_owner_vhca_id_valid, 1);
break;
case MLX5_IFC_STC_ACTION_TYPE_DROP:
case MLX5_IFC_STC_ACTION_TYPE_NOP:
@@ -520,27 +520,27 @@ mlx5dr_cmd_stc_modify_set_stc_param(struct mlx5dr_cmd_stc_modify_attr *stc_attr,
case MLX5_IFC_STC_ACTION_TYPE_ALLOW:
break;
case MLX5_IFC_STC_ACTION_TYPE_ASO:
- MLX5_SET(stc_ste_param_execute_aso, stc_parm, aso_object_id,
+ MLX5_SET(stc_ste_param_execute_aso, stc_param, aso_object_id,
stc_attr->aso.devx_obj_id);
- MLX5_SET(stc_ste_param_execute_aso, stc_parm, return_reg_id,
+ MLX5_SET(stc_ste_param_execute_aso, stc_param, return_reg_id,
stc_attr->aso.return_reg_id);
- MLX5_SET(stc_ste_param_execute_aso, stc_parm, aso_type,
+ MLX5_SET(stc_ste_param_execute_aso, stc_param, aso_type,
stc_attr->aso.aso_type);
break;
case MLX5_IFC_STC_ACTION_TYPE_JUMP_TO_STE_TABLE:
- MLX5_SET(stc_ste_param_ste_table, stc_parm, ste_obj_id,
+ MLX5_SET(stc_ste_param_ste_table, stc_param, ste_obj_id,
stc_attr->ste_table.ste_obj_id);
- MLX5_SET(stc_ste_param_ste_table, stc_parm, match_definer_id,
+ MLX5_SET(stc_ste_param_ste_table, stc_param, match_definer_id,
stc_attr->ste_table.match_definer_id);
- MLX5_SET(stc_ste_param_ste_table, stc_parm, log_hash_size,
+ MLX5_SET(stc_ste_param_ste_table, stc_param, log_hash_size,
stc_attr->ste_table.log_hash_size);
break;
case MLX5_IFC_STC_ACTION_TYPE_REMOVE_WORDS:
- MLX5_SET(stc_ste_param_remove_words, stc_parm, action_type,
+ MLX5_SET(stc_ste_param_remove_words, stc_param, action_type,
MLX5_MODIFICATION_TYPE_REMOVE_WORDS);
- MLX5_SET(stc_ste_param_remove_words, stc_parm, remove_start_anchor,
+ MLX5_SET(stc_ste_param_remove_words, stc_param, remove_start_anchor,
stc_attr->remove_words.start_anchor);
- MLX5_SET(stc_ste_param_remove_words, stc_parm,
+ MLX5_SET(stc_ste_param_remove_words, stc_param,
remove_size, stc_attr->remove_words.num_of_words);
break;
default:
@@ -557,7 +557,7 @@ mlx5dr_cmd_stc_modify(struct mlx5dr_devx_obj *devx_obj,
{
uint32_t out[MLX5_ST_SZ_DW(general_obj_out_cmd_hdr)] = {0};
uint32_t in[MLX5_ST_SZ_DW(create_stc_in)] = {0};
- void *stc_parm;
+ void *stc_param;
void *attr;
int ret;
@@ -577,8 +577,8 @@ mlx5dr_cmd_stc_modify(struct mlx5dr_devx_obj *devx_obj,
MLX5_IFC_MODIFY_STC_FIELD_SELECT_NEW_STC);
/* Set destination TIRN, TAG, FT ID, STE ID */
- stc_parm = MLX5_ADDR_OF(stc, attr, stc_param);
- ret = mlx5dr_cmd_stc_modify_set_stc_param(stc_attr, stc_parm);
+ stc_param = MLX5_ADDR_OF(stc, attr, stc_param);
+ ret = mlx5dr_cmd_stc_modify_set_stc_param(stc_attr, stc_param);
if (ret)
return ret;
--
2.39.3
next prev parent reply other threads:[~2024-02-18 5:12 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 9:50 [PATCH 1/9] net/mlx5/hws: skip RTE item when inserting rules by index Itamar Gozlan
2024-02-13 9:50 ` [PATCH 2/9] net/mlx5/hws: add check for not supported fields in VXLAN Itamar Gozlan
2024-02-13 9:50 ` [PATCH 3/9] net/mlx5/hws: add support for resizable matchers Itamar Gozlan
2024-02-13 9:50 ` [PATCH 4/9] net/mlx5/hws: reordering the STE fields to improve hash Itamar Gozlan
2024-02-13 9:50 ` [PATCH 5/9] net/mlx5/hws: check the rule status on rule update Itamar Gozlan
2024-02-13 9:50 ` [PATCH 6/9] net/mlx5/hws: fix VLAN item handling on non relaxed mode Itamar Gozlan
2024-02-13 9:50 ` [PATCH 7/9] net/mlx5/hws: extend action template creation API Itamar Gozlan
2024-02-13 9:50 ` [PATCH 8/9] net/mlx5/hws: add missing actions STE limitation Itamar Gozlan
2024-02-13 9:50 ` [PATCH 9/9] net/mlx5/hws: support push_esp flag for insert header action Itamar Gozlan
2024-02-18 5:11 ` [v2 01/10] net/mlx5/hws: skip RTE item when inserting rules by index Itamar Gozlan
2024-02-18 5:11 ` [v2 02/10] net/mlx5/hws: add check for not supported fields in VXLAN Itamar Gozlan
2024-02-18 5:11 ` [v2 03/10] net/mlx5/hws: add support for resizable matchers Itamar Gozlan
2024-02-18 5:11 ` [v2 04/10] net/mlx5/hws: reordering the STE fields to improve hash Itamar Gozlan
2024-02-18 5:11 ` [v2 05/10] net/mlx5/hws: check the rule status on rule update Itamar Gozlan
2024-02-18 5:11 ` [v2 06/10] net/mlx5/hws: fix VLAN item handling on non relaxed mode Itamar Gozlan
2024-02-18 5:11 ` [v2 07/10] net/mlx5/hws: extend action template creation API Itamar Gozlan
2024-02-18 5:11 ` [v2 08/10] net/mlx5/hws: add missing actions STE limitation Itamar Gozlan
2024-02-18 5:11 ` [v2 09/10] net/mlx5/hws: support push_esp flag for insert header action Itamar Gozlan
2024-02-18 5:11 ` Itamar Gozlan [this message]
2024-02-26 10:16 ` [v2 01/10] net/mlx5/hws: skip RTE item when inserting rules by index Raslan Darawsheh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240218051125.717011-10-igozlan@nvidia.com \
--to=igozlan@nvidia.com \
--cc=dev@dpdk.org \
--cc=dsosnowski@nvidia.com \
--cc=erezsh@nvidia.com \
--cc=hamdani@nvidia.com \
--cc=kliteyn@nvidia.com \
--cc=matan@nvidia.com \
--cc=orika@nvidia.com \
--cc=suanmingm@nvidia.com \
--cc=thomas@monjalon.net \
--cc=viacheslavo@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).