]> git.itanic.dy.fi Git - linux-stable/commit
net: hns3: fix output information incomplete for dumping tx queue info with debugfs
authorJie Wang <wangjie125@huawei.com>
Fri, 12 May 2023 10:00:11 +0000 (18:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 May 2023 16:12:23 +0000 (17:12 +0100)
commit89f6bfb071182f05d7188c255b0e7251c3806f16
treeed68897b568bf0c85d6c9e45c3bbe4bb96c5f353
parent843eb679d831130c381aaf1ec3bfb9206921cc62
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: 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>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h