Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp212729ybh; Fri, 6 Mar 2020 19:53:32 -0800 (PST) X-Google-Smtp-Source: ADFU+vsgdfzzokeo/0iIZrhs37G2V8/2UCPKUZGWa2xzv6qtUBobSG5MnEA6MI95OF4G+KlHvCMz X-Received: by 2002:a05:6830:1245:: with SMTP id s5mr4862016otp.43.1583553212464; Fri, 06 Mar 2020 19:53:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583553212; cv=none; d=google.com; s=arc-20160816; b=X473Qe7aFaWZIK3corbE4mEKASGWUX8F2+Ys1yky0jgiCMAojop50IWPKwlYAScbpZ H6ig1tfaEVuL2BMx/6YY9ViFkJEgZamiLyPH2MnYn2pRR22xy2ORQwZKHbk5VpZccRPR 2BuQEecUwUqazOusTigEbd6b3NsWfXLw8BJpchYhskzwq4YKJyLuzkK6HgvkWWBorZIq zFp8vGtzwkS2zP/tNVmawWFoIL7dbkTcpqcCuTCzCXD9z1753o8wvhVbZBTnje3fP9H/ mkN8sR4hXlSvld5ZabeYXAUt+s4IvSAbO0rmZUmbktDc2zf8pNklymhNfRYQT+O55Zxf z7nA== 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=6Dzt+qVL1ynaZsLA3PhY6uz8dF/VVA1CgnnrB22/qQM=; b=ifsH9eP15XZN5sW9alAvhsWB5kOJ+5dg1PyZ35Qj1IbFVixHD1ujn5WmTH7/TcDaL1 pM0fuTrshRDyecaLDaIt7PhHnCWm9+n7qzpaxG9hUj3DWNdk7y26BmjjR10UcxOYtcY5 E1VhQgvvhXJJpfkznu6BcN8N4wEA+lTehHPWgxqT/T2dcJ+VxSxsBwnkqS+OS41Vf4jI mU9e84wJ3TQWhZ+Z+QWotmf8zRV0LjHZ+ReSZ1OrYtMsfVPYXpqL+F7jqYrRyaPlWiOx HHVqlRE9u6FrSDtQvg2ANeoiYE/66oJfsfdvbJNr1LiQa1SK3yFX1nBtuCT8TYTVamAF ikbg== 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 u12si764200oiv.13.2020.03.06.19.53.21; Fri, 06 Mar 2020 19:53:32 -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 S1727308AbgCGDwm (ORCPT + 99 others); Fri, 6 Mar 2020 22:52:42 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11607 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727049AbgCGDwe (ORCPT ); Fri, 6 Mar 2020 22:52:34 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2B79423C44678E34114C; Sat, 7 Mar 2020 11:52:29 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Sat, 7 Mar 2020 11:52:18 +0800 From: Huazhong Tan To: CC: , , , , , , Yufeng Mo , Huazhong Tan Subject: [PATCH V2 net-next 2/9] net: hns3: rename macro HCLGE_MAX_NCL_CONFIG_LENGTH Date: Sat, 7 Mar 2020 11:42:43 +0800 Message-ID: <1583552570-51203-3-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1583552570-51203-1-git-send-email-tanhuazhong@huawei.com> References: <1583552570-51203-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 afa7c6ff..0538e81 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