net: hns3: refactor the debugfs process
Currently, each debugfs command needs to create a file to get the information. To better support more debugfs commands, the debugfs process is reconstructed, including the process of creating dentries and files, and obtaining information. Signed-off-by:Yufeng Mo <moyufeng@huawei.com> Signed-off-by:
Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/hisilicon/hns3/hnae3.h 8 additions, 5 deletionsdrivers/net/ethernet/hisilicon/hns3/hnae3.h
- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c 164 additions, 29 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
- drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h 29 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 6 additions, 1 deletiondrivers/net/ethernet/hisilicon/hns3/hns3_enet.c
- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h 1 addition, 1 deletiondrivers/net/ethernet/hisilicon/hns3/hns3_enet.h
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c 22 additions, 10 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h 5 additions, 0 deletionsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h
- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h 1 addition, 1 deletiondrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
Loading