diff options
author | Jie Wang <wangjie125@huawei.com> | 2021-11-29 22:00:20 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-29 14:26:17 +0000 |
commit | e6fe5e167185b610a948337ab565ed7a7e313f80 (patch) | |
tree | 87119f3633e18d0599f739f8b785080bf33d93db /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | |
parent | net: hns3: refactor hns3_nic_reuse_page() (diff) | |
download | linux-dev-e6fe5e167185b610a948337ab565ed7a7e313f80.tar.xz linux-dev-e6fe5e167185b610a948337ab565ed7a7e313f80.zip |
net: hns3: refactor two hns3 debugfs functions
Use for statement to optimize some print work of function
hclge_dbg_dump_rst_info() and hclge_dbg_dump_mac_enable_status() to
improve code simplicity.
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h index 5b6018204f92..724052928b88 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h @@ -94,6 +94,11 @@ struct hclge_dbg_func { char *buf, int len); }; +struct hclge_dbg_status_dfx_info { + u32 offset; + char message[HCLGE_DBG_MAX_DFX_MSG_LEN]; +}; + static const struct hclge_dbg_dfx_message hclge_dbg_bios_common_reg[] = { {false, "Reserved"}, {true, "BP_CPU_STATE"}, |