net: hns3: modify some incorrect spelling
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 14 May 2020 12:41:22 +0000 (20:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 20:18:09 +0000 (13:18 -0700)
This patch modifies some incorrect spelling.

Reported-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c

index 21a736174fdaf2bf34c2999c948f111bd954d0a4..1ffe8fac702d9430c12caf5f47791a6295984559 100644 (file)
@@ -24,7 +24,7 @@ enum HCLGE_MBX_OPCODE {
        HCLGE_MBX_GET_RETA,             /* (VF -> PF) get RETA */
        HCLGE_MBX_GET_RSS_KEY,          /* (VF -> PF) get RSS key */
        HCLGE_MBX_GET_MAC_ADDR,         /* (VF -> PF) get MAC addr */
-       HCLGE_MBX_PF_VF_RESP,           /* (PF -> VF) generate respone to VF */
+       HCLGE_MBX_PF_VF_RESP,           /* (PF -> VF) generate response to VF */
        HCLGE_MBX_GET_BDNUM,            /* (VF -> PF) get BD num */
        HCLGE_MBX_GET_BUFSIZE,          /* (VF -> PF) get buffer size */
        HCLGE_MBX_GET_STREAMID,         /* (VF -> PF) get stream id */
index 48c115c50db58a2261055ce3758c3155a014c833..26f6f068b01d31d9f49cc65873011c01396b9ca0 100644 (file)
@@ -691,7 +691,7 @@ static void hclge_dbg_dump_tm_map(struct hclge_dev *hdev,
        enum hclge_opcode_type cmd;
        struct hclge_desc desc;
        int queue_id, group_id;
-       u32 qset_maping[32];
+       u32 qset_mapping[32];
        int tc_id, qset_id;
        int pri_id, ret;
        u32 i;
@@ -746,7 +746,7 @@ static void hclge_dbg_dump_tm_map(struct hclge_dev *hdev,
                if (ret)
                        goto err_tm_map_cmd_send;
 
-               qset_maping[group_id] =
+               qset_mapping[group_id] =
                        le32_to_cpu(bp_to_qs_map_cmd->qs_bit_map);
        }
 
@@ -756,11 +756,11 @@ static void hclge_dbg_dump_tm_map(struct hclge_dev *hdev,
        for (group_id = 0; group_id < 4; group_id++) {
                dev_info(&hdev->pdev->dev,
                         "%04d  | %08x:%08x:%08x:%08x:%08x:%08x:%08x:%08x\n",
-                        group_id * 256, qset_maping[(u32)(i + 7)],
-                        qset_maping[(u32)(i + 6)], qset_maping[(u32)(i + 5)],
-                        qset_maping[(u32)(i + 4)], qset_maping[(u32)(i + 3)],
-                        qset_maping[(u32)(i + 2)], qset_maping[(u32)(i + 1)],
-                        qset_maping[i]);
+                        group_id * 256, qset_mapping[(u32)(i + 7)],
+                        qset_mapping[(u32)(i + 6)], qset_mapping[(u32)(i + 5)],
+                        qset_mapping[(u32)(i + 4)], qset_mapping[(u32)(i + 3)],
+                        qset_mapping[(u32)(i + 2)], qset_mapping[(u32)(i + 1)],
+                        qset_mapping[i]);
                i += 8;
        }