Skip to content

Commit c7a6e39

Browse files
Guangbin Huangdavem330
authored andcommitted
net: hns3: expand buffer len for some debugfs command
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: b5a0b70 ("net: hns3: refactor dump fd tcam of debugfs") Fixes: 1556ea9 ("net: hns3: refactor dump mac list of debugfs") Fixes: d96b0e5 ("net: hns3: refactor dump reg of debugfs") Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6754614 commit c7a6e39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = {
137137
.name = "uc",
138138
.cmd = HNAE3_DBG_CMD_MAC_UC,
139139
.dentry = HNS3_DBG_DENTRY_MAC,
140-
.buf_len = HNS3_DBG_READ_LEN,
140+
.buf_len = HNS3_DBG_READ_LEN_128KB,
141141
.init = hns3_dbg_common_file_init,
142142
},
143143
{
@@ -256,7 +256,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = {
256256
.name = "tqp",
257257
.cmd = HNAE3_DBG_CMD_REG_TQP,
258258
.dentry = HNS3_DBG_DENTRY_REG,
259-
.buf_len = HNS3_DBG_READ_LEN,
259+
.buf_len = HNS3_DBG_READ_LEN_128KB,
260260
.init = hns3_dbg_common_file_init,
261261
},
262262
{
@@ -298,7 +298,7 @@ static struct hns3_dbg_cmd_info hns3_dbg_cmd[] = {
298298
.name = "fd_tcam",
299299
.cmd = HNAE3_DBG_CMD_FD_TCAM,
300300
.dentry = HNS3_DBG_DENTRY_FD,
301-
.buf_len = HNS3_DBG_READ_LEN,
301+
.buf_len = HNS3_DBG_READ_LEN_1MB,
302302
.init = hns3_dbg_common_file_init,
303303
},
304304
{

0 commit comments

Comments
 (0)