]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add debugfs support for tm nodes, priority and qset info
authorGuangbin Huang <huangguangbin2@huawei.com>
Thu, 28 Jan 2021 11:51:36 +0000 (19:51 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Jan 2021 04:42:24 +0000 (20:42 -0800)
commit90b494c8fe3d56a1680f1df66cabd584eb573020
tree69da957d8d50b71a4ce0b36fe7b219a16cc4ddaf
parent262bbabfa5b6ee09751400a48d25de8fa43d5523
net: hns3: add debugfs support for tm nodes, priority and qset info

In order to query tm info of nodes, priority and qset
for debugging, adds three debugfs files tm_nodes,
tm_priority and tm_qset in newly created tm directory.

Unlike previous debugfs commands, these three files
just support read ops, so they only support to use cat
command to dump their info.

The new tm file style is acccording to suggestion from
Jakub Kicinski's opinion as link https://lkml.org/lkml/2020/9/29/2101.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h