net: hns3: modify two uncorrect macro names
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 9 May 2020 09:27:38 +0000 (17:27 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 May 2020 02:43:22 +0000 (19:43 -0700)
According to the UM, command 0x0B03 and 0x0B13 are used to
query the statistics about TX and RX, not the status, so
modifies the unsuitable macro name of these two command.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 9a9d752..e3bab8f 100644 (file)
@@ -184,11 +184,11 @@ enum hclge_opcode_type {
        /* TQP commands */
        HCLGE_OPC_CFG_TX_QUEUE          = 0x0B01,
        HCLGE_OPC_QUERY_TX_POINTER      = 0x0B02,
-       HCLGE_OPC_QUERY_TX_STATUS       = 0x0B03,
+       HCLGE_OPC_QUERY_TX_STAT       = 0x0B03,
        HCLGE_OPC_TQP_TX_QUEUE_TC       = 0x0B04,
        HCLGE_OPC_CFG_RX_QUEUE          = 0x0B11,
        HCLGE_OPC_QUERY_RX_POINTER      = 0x0B12,
-       HCLGE_OPC_QUERY_RX_STATUS       = 0x0B13,
+       HCLGE_OPC_QUERY_RX_STAT       = 0x0B13,
        HCLGE_OPC_STASH_RX_QUEUE_LRO    = 0x0B16,
        HCLGE_OPC_CFG_RX_QUEUE_LRO      = 0x0B17,
        HCLGE_OPC_CFG_COM_TQP_QUEUE     = 0x0B20,
index f0b1dc9..3ad6a6a 100644 (file)
@@ -552,7 +552,7 @@ static int hclge_tqps_update_stats(struct hnae3_handle *handle)
                queue = handle->kinfo.tqp[i];
                tqp = container_of(queue, struct hclge_tqp, q);
                /* command : HCLGE_OPC_QUERY_IGU_STAT */
-               hclge_cmd_setup_basic_desc(&desc[0], HCLGE_OPC_QUERY_RX_STATUS,
+               hclge_cmd_setup_basic_desc(&desc[0], HCLGE_OPC_QUERY_RX_STATS,
                                           true);
 
                desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff));
@@ -572,7 +572,7 @@ static int hclge_tqps_update_stats(struct hnae3_handle *handle)
                tqp = container_of(queue, struct hclge_tqp, q);
                /* command : HCLGE_OPC_QUERY_IGU_STAT */
                hclge_cmd_setup_basic_desc(&desc[0],
-                                          HCLGE_OPC_QUERY_TX_STATUS,
+                                          HCLGE_OPC_QUERY_TX_STATS,
                                           true);
 
                desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff));