62 lines
2.4 KiB
Diff
62 lines
2.4 KiB
Diff
From bf1a185842e2e8c60439577a3ff6e13de63728c6 Mon Sep 17 00:00:00 2001
|
|
From: Jie Wang <wangjie125@huawei.com>
|
|
Date: Fri, 12 May 2023 18:00:11 +0800
|
|
Subject: [PATCH 216/283] net: hns3: fix output information incomplete for
|
|
dumping tx queue info with debugfs
|
|
|
|
mainline inclusion
|
|
from mainline-v6.4-rc3
|
|
commit 89f6bfb071182f05d7188c255b0e7251c3806f16
|
|
category: bugfix
|
|
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I8EN49
|
|
|
|
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=89f6bfb071182f05d7188c255b0e7251c3806f16
|
|
|
|
--------------------------------
|
|
|
|
In function hns3_dump_tx_queue_info, The print buffer is not enough when
|
|
the tx BD number is configured to 32760. As a result several BD
|
|
information wouldn't be displayed.
|
|
|
|
So fix it by increasing the tx queue print buffer length.
|
|
|
|
Fixes: 630a6738da82 ("net: hns3: adjust string spaces of some parameters of tx bd info in debugfs")
|
|
Signed-off-by: Jie Wang <wangjie125@huawei.com>
|
|
Signed-off-by: Hao Lan <lanhao@huawei.com>
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
|
Signed-off-by: Jiantao Xiao <xiaojiantao1@h-partners.com>
|
|
Signed-off-by: Xiaodong Li <lixiaodong67@huawei.com>
|
|
---
|
|
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 2 +-
|
|
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h | 1 +
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
|
|
index f2a11eaa7161..9e92e8f92b95 100644
|
|
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
|
|
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
|
|
@@ -109,7 +109,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = {
|
|
.name = "tx_bd_queue",
|
|
.cmd = HNAE3_DBG_CMD_TX_BD,
|
|
.dentry = HNS3_DBG_DENTRY_TX_BD,
|
|
- .buf_len = HNS3_DBG_READ_LEN_4MB,
|
|
+ .buf_len = HNS3_DBG_READ_LEN_5MB,
|
|
.init = hns3_dbg_bd_file_init,
|
|
},
|
|
{
|
|
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
|
|
index 97578eabb7d8..4a5ef8a90a10 100644
|
|
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
|
|
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
|
|
@@ -10,6 +10,7 @@
|
|
#define HNS3_DBG_READ_LEN_128KB 0x20000
|
|
#define HNS3_DBG_READ_LEN_1MB 0x100000
|
|
#define HNS3_DBG_READ_LEN_4MB 0x400000
|
|
+#define HNS3_DBG_READ_LEN_5MB 0x500000
|
|
#define HNS3_DBG_WRITE_LEN 1024
|
|
|
|
#define HNS3_DBG_DATA_STR_LEN 32
|
|
--
|
|
2.34.1
|
|
|