]> git.baikalelectronics.ru Git - kernel.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:44 +0000 (17:32 +0100)
commit1ec78e3b3436876641bfd91a45dc100c570402ef
tree0da0dd6968f17bb334458ff629254428d8cfaf22
parentc8fdcc05c5a4d6a2632c0723cf0397bc268f16d5
net: hns3: fix output information incomplete for dumping tx queue info with debugfs

[ Upstream commit 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: c0ecfd9bbd9d ("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: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h