OSDN Git Service

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)
commit04987ca1b9b6841cfa5f9b459c5a270b75c89345
tree69da957d8d50b71a4ce0b36fe7b219a16cc4ddaf
parent2bbad0aa40e172e7ed7aba6f6ad4d9977dbd0be3
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