Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6356481ybf; Thu, 5 Mar 2020 19:00:08 -0800 (PST) X-Google-Smtp-Source: ADFU+vskMpgC0/G5A0RRrUA8alsttor+wrA/HMNf6xNbrKagGnhUhaPvJVxwQu0bIIZwrNWjiwDX X-Received: by 2002:a9d:dc1:: with SMTP id 59mr808109ots.250.1583463608237; Thu, 05 Mar 2020 19:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583463608; cv=none; d=google.com; s=arc-20160816; b=P+QrXSU+EaajYp/FDmJPq5jPuc2AQgTpFrKjpcV0+Ztx7/YWmPyfVAzMWAIJynWCc2 SyKQ1guB+dTou6VSvtMBvUVhuiZ9wQ9e/SJeWmKWBtDR6JH8iQ/wDI4MH1MrXE5vpv95 CZOkncDvZtfxboeKB0wKkCy+h+KHyOhfODWQUxw8xCe1468Xg1qmpVX0FVhQ73xIcGjl kLQa/I5MC0gxEx+ZpSkBZubE71E4HLwlo4h8rgueuxHKz52fH5hSxhUoLI30lXulhNdc cLakKtfnCoUvLYgwA3ESJwY5vgO7420d4i6UNO0KnxkcLfxJTstPc2C0KAIvyJxYqhZq Wbow== 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=8guX0XGt9pAFZsN3uQLjv8g4eMTaKR/ipEa/FfdAdDM=; b=cMelgqFZvHkqENSiXPQ2hxjnXyPkyYo/IhwCmUBE9j7kzF95QV6oCeEAXDy7hvm+K1 yUIXO+t7+XaXT3EnEpxv/kyjBqjS3A0TAcUGR6sw+7J/bKKx8mlAtErJNunlORHw1b5d QIrKBU+uNx2JB688wFUKW1fgibjLGNw7tkWReOMvxNqn7CoKi6EPz9RtS9wU6cBgHZxQ HaeEpK6I7YTeJXQzznC7w2dVzlhtNyhgv9HQFFNfjkjbsh4OJcw+yEydpEhsB4UblCGY LSMhAYATJ6C36kzFuMQo1kcy/H1tqajPdEnq0Gg4yJjY97AL0iJR9YFwrJBlrH0ki96m BZoQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si581468oix.96.2020.03.05.18.59.56; Thu, 05 Mar 2020 19:00:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727303AbgCFC6o (ORCPT + 99 others); Thu, 5 Mar 2020 21:58:44 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:38176 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726533AbgCFC6A (ORCPT ); Thu, 5 Mar 2020 21:58:00 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4BE296EFDB17F3167F68; Fri, 6 Mar 2020 10:57:58 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Mar 2020 10:57:48 +0800 From: Huazhong Tan To: CC: , , , , , , Yufeng Mo , Huazhong Tan Subject: [PATCH net-next 2/9] net: hns3: rename macro HCLGE_MAX_NCL_CONFIG_LENGTH Date: Fri, 6 Mar 2020 10:57:11 +0800 Message-ID: <1583463438-60953-3-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583463438-60953-1-git-send-email-tanhuazhong@huawei.com> References: <1583463438-60953-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 From: Yufeng Mo The name of macro HCLGE_MAX_NCL_CONFIG_LENGTH is inaccurate, this patch renames it to HCLGE_NCL_CONFIG_LENGTH_IN_EACH_CMD. Signed-off-by: Yufeng Mo Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c index 5b4045c..5814f36 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c @@ -1137,7 +1137,7 @@ static void hclge_dbg_dump_ncl_config(struct hclge_dev *hdev, const char *cmd_buf) { #define HCLGE_MAX_NCL_CONFIG_OFFSET 4096 -#define HCLGE_MAX_NCL_CONFIG_LENGTH (20 + 24 * 4) +#define HCLGE_NCL_CONFIG_LENGTH_IN_EACH_CMD (20 + 24 * 4) struct hclge_desc desc[HCLGE_CMD_NCL_CONFIG_BD_NUM]; int bd_num = HCLGE_CMD_NCL_CONFIG_BD_NUM; @@ -1161,8 +1161,8 @@ static void hclge_dbg_dump_ncl_config(struct hclge_dev *hdev, while (length > 0) { data0 = offset; - if (length >= HCLGE_MAX_NCL_CONFIG_LENGTH) - data0 |= HCLGE_MAX_NCL_CONFIG_LENGTH << 16; + if (length >= HCLGE_NCL_CONFIG_LENGTH_IN_EACH_CMD) + data0 |= HCLGE_NCL_CONFIG_LENGTH_IN_EACH_CMD << 16; else data0 |= length << 16; ret = hclge_dbg_cmd_send(hdev, desc, data0, bd_num, -- 2.7.4