Skip to content

Commit c472633

Browse files
Yunsheng Lindavem330
authored andcommitted
net: hns3: Fix typo error for feild in hclge_tm
This patch fixes a typo error for feild, which should be field. Fixes: 8484405 ("net: hns3: Add support of TX Scheduler & Shaper to HNS3 driver") Signed-off-by: Yunsheng Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent d602a52 commit c472633

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -280,11 +280,11 @@ static int hclge_tm_pg_shapping_cfg(struct hclge_dev *hdev,
280280

281281
shap_cfg_cmd->pg_id = pg_id;
282282

283-
hclge_tm_set_feild(shap_cfg_cmd->pg_shapping_para, IR_B, ir_b);
284-
hclge_tm_set_feild(shap_cfg_cmd->pg_shapping_para, IR_U, ir_u);
285-
hclge_tm_set_feild(shap_cfg_cmd->pg_shapping_para, IR_S, ir_s);
286-
hclge_tm_set_feild(shap_cfg_cmd->pg_shapping_para, BS_B, bs_b);
287-
hclge_tm_set_feild(shap_cfg_cmd->pg_shapping_para, BS_S, bs_s);
283+
hclge_tm_set_field(shap_cfg_cmd->pg_shapping_para, IR_B, ir_b);
284+
hclge_tm_set_field(shap_cfg_cmd->pg_shapping_para, IR_U, ir_u);
285+
hclge_tm_set_field(shap_cfg_cmd->pg_shapping_para, IR_S, ir_s);
286+
hclge_tm_set_field(shap_cfg_cmd->pg_shapping_para, BS_B, bs_b);
287+
hclge_tm_set_field(shap_cfg_cmd->pg_shapping_para, BS_S, bs_s);
288288

289289
return hclge_cmd_send(&hdev->hw, &desc, 1);
290290
}
@@ -307,11 +307,11 @@ static int hclge_tm_pri_shapping_cfg(struct hclge_dev *hdev,
307307

308308
shap_cfg_cmd->pri_id = pri_id;
309309

310-
hclge_tm_set_feild(shap_cfg_cmd->pri_shapping_para, IR_B, ir_b);
311-
hclge_tm_set_feild(shap_cfg_cmd->pri_shapping_para, IR_U, ir_u);
312-
hclge_tm_set_feild(shap_cfg_cmd->pri_shapping_para, IR_S, ir_s);
313-
hclge_tm_set_feild(shap_cfg_cmd->pri_shapping_para, BS_B, bs_b);
314-
hclge_tm_set_feild(shap_cfg_cmd->pri_shapping_para, BS_S, bs_s);
310+
hclge_tm_set_field(shap_cfg_cmd->pri_shapping_para, IR_B, ir_b);
311+
hclge_tm_set_field(shap_cfg_cmd->pri_shapping_para, IR_U, ir_u);
312+
hclge_tm_set_field(shap_cfg_cmd->pri_shapping_para, IR_S, ir_s);
313+
hclge_tm_set_field(shap_cfg_cmd->pri_shapping_para, BS_B, bs_b);
314+
hclge_tm_set_field(shap_cfg_cmd->pri_shapping_para, BS_S, bs_s);
315315

316316
return hclge_cmd_send(&hdev->hw, &desc, 1);
317317
}

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ struct hclge_bp_to_qs_map_cmd {
9494
u32 rsvd1;
9595
};
9696

97-
#define hclge_tm_set_feild(dest, string, val) \
97+
#define hclge_tm_set_field(dest, string, val) \
9898
hnae_set_field((dest), (HCLGE_TM_SHAP_##string##_MSK), \
9999
(HCLGE_TM_SHAP_##string##_LSH), val)
100-
#define hclge_tm_get_feild(src, string) \
100+
#define hclge_tm_get_field(src, string) \
101101
hnae_get_field((src), (HCLGE_TM_SHAP_##string##_MSK), \
102102
(HCLGE_TM_SHAP_##string##_LSH))
103103

0 commit comments

Comments
 (0)