Skip to content

Commit 89f6bfb

Browse files
Jie Wangdavem330
authored andcommitted
net: hns3: fix output information incomplete for dumping tx queue info with debugfs
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: 630a673 ("net: hns3: adjust string spaces of some parameters of tx bd info in debugfs") Signed-off-by: Jie Wang <[email protected]> Signed-off-by: Hao Lan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 843eb67 commit 89f6bfb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = {
130130
.name = "tx_bd_queue",
131131
.cmd = HNAE3_DBG_CMD_TX_BD,
132132
.dentry = HNS3_DBG_DENTRY_TX_BD,
133-
.buf_len = HNS3_DBG_READ_LEN_4MB,
133+
.buf_len = HNS3_DBG_READ_LEN_5MB,
134134
.init = hns3_dbg_bd_file_init,
135135
},
136136
{

drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define HNS3_DBG_READ_LEN_128KB 0x20000
1111
#define HNS3_DBG_READ_LEN_1MB 0x100000
1212
#define HNS3_DBG_READ_LEN_4MB 0x400000
13+
#define HNS3_DBG_READ_LEN_5MB 0x500000
1314
#define HNS3_DBG_WRITE_LEN 1024
1415

1516
#define HNS3_DBG_DATA_STR_LEN 32

0 commit comments

Comments
 (0)