Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp883734pxb; Wed, 27 Oct 2021 14:25:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/J7FQPsEO1H7L9mE3d+Vzp3yPNt685G+qmALJq9bjBxXI9ccgO5qEC3wMmjDZIdQRa/Io X-Received: by 2002:aa7:da53:: with SMTP id w19mr479116eds.268.1635369953833; Wed, 27 Oct 2021 14:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369953; cv=none; d=google.com; s=arc-20160816; b=jOm/nNanFb7gsiVDD1CFYLOEQ+OvzYsMcLvy+U7lT2EZkgq+Fh20O02q5HzNVqy4mI lcFPMEOVkrCPrp4f3AHb+GLLfk6xuyHx5koo1mNMJsyXccA3L9iLaH0nwNCCeOH1gH9l G+13v7JEk+Ydw7kRbIOZcVE1Pe/AHYqdGdSUS/XfrlzkuNrp9OC2Zb2eD31LAaFeoush 20PSGh7KWJOYFPlZJpUWQGDWCiGxdl3Xdi9BDF6IzDZ6dKBr01aPxb4L6T+o8KumfRPk 6ua+6R7kDY/Qa4y6rCply1K8cc+GDcJQvZ7qUZMB4tl5ar81vk0N3hBtRCBX/NCdEbFQ pzpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7WS+Vla2M+7VIMDnKx87uObFQ5FfaVKFoA7ONC5uwHk=; b=VW+zPKsCCKM3Xzm2TEL9iXb3pl/wCersBU7Ou9n7oLx5h8HYe5xd29X01nCOgX6/Ri t54KGDRwi0kRV0PWQt4TH3guSiIEKpH95ZnGaXLXQ55wXlbtZ30qqIffNYa2vfVrVfgl CvxqEF/TJeUMfZo+tZG8NMMdUfOP61rMDfhRkmiIpSPazMX0H5SdGBg5qL05m2KniHbn 6xO+V9Tg7vDm5yV9k3LzPHN7CYycj+buN3/vgszYgDU1iGRyb1V0wTtkBY/nTf/leJ3s bwfpJHC6dsC2z8/fGuC+2drnEjESy0BjRuXc97yXek3oLKrWn+70YFzMdk1k/bwBTbny 4PTQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si1892540ejw.120.2021.10.27.14.25.24; Wed, 27 Oct 2021 14:25:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241927AbhJ0MS5 (ORCPT + 97 others); Wed, 27 Oct 2021 08:18:57 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:26125 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241814AbhJ0MSj (ORCPT ); Wed, 27 Oct 2021 08:18:39 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4HfSKh1CdHz1DHrL; Wed, 27 Oct 2021 20:14:16 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Wed, 27 Oct 2021 20:16:11 +0800 Received: from localhost.localdomain (10.67.165.24) by kwepemm600016.china.huawei.com (7.193.23.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Wed, 27 Oct 2021 20:16:11 +0800 From: Guangbin Huang To: , , CC: , , , , Subject: [PATCH net 6/7] net: hns3: expand buffer len for some debugfs command Date: Wed, 27 Oct 2021 20:11:48 +0800 Message-ID: <20211027121149.45897-7-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211027121149.45897-1-huangguangbin2@huawei.com> References: <20211027121149.45897-1-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600016.china.huawei.com (7.193.23.20) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The specified buffer length for three debugfs files fd_tcam, uc and tqp is not enough for their maximum needs, so this patch fixes them. Fixes: b5a0b70d77b9 ("net: hns3: refactor dump fd tcam of debugfs") Fixes: 1556ea9120ff ("net: hns3: refactor dump mac list of debugfs") Fixes: d96b0e59468d ("net: hns3: refactor dump reg of debugfs") Signed-off-by: Guangbin Huang --- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c index 3aaad96d0176..f2ade0446208 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c @@ -137,7 +137,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = { .name = "uc", .cmd = HNAE3_DBG_CMD_MAC_UC, .dentry = HNS3_DBG_DENTRY_MAC, - .buf_len = HNS3_DBG_READ_LEN, + .buf_len = HNS3_DBG_READ_LEN_128KB, .init = hns3_dbg_common_file_init, }, { @@ -256,7 +256,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = { .name = "tqp", .cmd = HNAE3_DBG_CMD_REG_TQP, .dentry = HNS3_DBG_DENTRY_REG, - .buf_len = HNS3_DBG_READ_LEN, + .buf_len = HNS3_DBG_READ_LEN_128KB, .init = hns3_dbg_common_file_init, }, { @@ -298,7 +298,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = { .name = "fd_tcam", .cmd = HNAE3_DBG_CMD_FD_TCAM, .dentry = HNS3_DBG_DENTRY_FD, - .buf_len = HNS3_DBG_READ_LEN, + .buf_len = HNS3_DBG_READ_LEN_1MB, .init = hns3_dbg_common_file_init, }, { -- 2.33.0