Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp276762ybk; Sat, 9 May 2020 02:34:20 -0700 (PDT) X-Google-Smtp-Source: APiQypIdwBBuaXQE2G3OgpJiJRg7BxKlvmBo06UQ43tM/pXnypovzYRfzt3QVnR+Jjek3eEowbmL X-Received: by 2002:a17:906:3c13:: with SMTP id h19mr4484696ejg.174.1589016859819; Sat, 09 May 2020 02:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589016859; cv=none; d=google.com; s=arc-20160816; b=Dc2p6EQV9nhNmwC7cE3wpL2nAM9c3MzMWRpE9Hk8xZd9N8j4jzw9t19NOGAN3/HQC9 Nu8kDzGC7qYCBi/pcnGRNiWrqFnloLdLWv+SDoqLBgK37j5NA2hwKNyd8IsF6qo6cTWS 81lEJeyMWPbZmWv7IaONzBAztImvJn8Bg2lSeNhjzRrFhqkM6DyQrhVWZ2Z2t5CNpQol Z8EB4GXduV2RCJtfMmzd+KBym2ohgcb5OX34Rbwk4JT5cIQ96ck5i/QQuLtsfJzczsOo v6AxNF+R/YSvyS2vdbK0GKmT0RKVOVfzEnUQCRC/a1vYysaYOhJVvi+z6OXDnLeMHtjT 2iZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=DG2oKP87XEijPdosNzxtsblbDcxPzE6dK2pzKB6PSG4=; b=XZ6eMT5TuM0Rt4RKtrJFSkdut1ZQdsZv9NB87uNV2NaDFyzCN9fEOjh2p8TmPnOKmI QuLbn5o3WS8SGtd6Dpt0LF+S7t83Jer5Pe5lLyIbodZId2ACm1XqR4qM+ggkqvtxg4AX w22816tYc2ImLb7lp9V/+GMX1AkyoCwdd7YgQGRX5GRMecuJP8RNdQo+Z3ULExXkzyR2 KO/1b8rA7ssqa8I+XzVuQZT5HQ4TH/j/eGKuRj1Z4AcbKt/5cQZZ1XVbZtyafnH1K2ZX ZH558P/qU8kwDYWrRb4/z/SRTmeNwEhnvmlwDJDrbx11sqwJ6a5wI0ZqTVJxyGicj/1s CYPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b13si2508496edx.163.2020.05.09.02.33.56; Sat, 09 May 2020 02:34:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728000AbgEIJ25 (ORCPT + 99 others); Sat, 9 May 2020 05:28:57 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4376 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726946AbgEIJ24 (ORCPT ); Sat, 9 May 2020 05:28:56 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4EC35A1440E92959CC12; Sat, 9 May 2020 17:28:55 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Sat, 9 May 2020 17:28:49 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH net-next 2/5] net: hns3: modify two uncorrect macro names Date: Sat, 9 May 2020 17:27:38 +0800 Message-ID: <1589016461-10130-3-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589016461-10130-1-git-send-email-tanhuazhong@huawei.com> References: <1589016461-10130-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 4 ++-- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index 9a9d752..e3bab8f 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -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_STATS = 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_STATS = 0x0B13, HCLGE_OPC_STASH_RX_QUEUE_LRO = 0x0B16, HCLGE_OPC_CFG_RX_QUEUE_LRO = 0x0B17, HCLGE_OPC_CFG_COM_TQP_QUEUE = 0x0B20, diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index f0b1dc9..3ad6a6a 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -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)); -- 2.7.4