diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2019-09-11 10:40:39 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-11 09:08:46 +0100 |
commit | 0ecf1f7b28b7b062480dfc3bfb1023811e9d83ad (patch) | |
tree | 124e5961db3138199ccbb5fef42d01c4f579d90f /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | |
parent | fa17c708ff5aa169eb87c9de665c1f2011cc51b9 (diff) | |
download | blackbird-op-linux-0ecf1f7b28b7b062480dfc3bfb1023811e9d83ad.tar.gz blackbird-op-linux-0ecf1f7b28b7b062480dfc3bfb1023811e9d83ad.zip |
net: hns3: add some DFX info for reset issue
This patch adds more information for reset DFX. Also, adds some
cleanups to reset info, move reset_fail_cnt into struct
hclge_rst_stats, and modifies some print formats.
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h index 870550fa9ff1..3e9574a9e22d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h @@ -659,6 +659,7 @@ struct hclge_rst_stats { u32 global_rst_cnt; /* the number of GLOBAL */ u32 imp_rst_cnt; /* the number of IMP reset */ u32 reset_cnt; /* the number of reset */ + u32 reset_fail_cnt; /* the number of reset fail */ }; /* time and register status when mac tunnel interruption occur */ @@ -725,7 +726,6 @@ struct hclge_dev { unsigned long reset_request; /* reset has been requested */ unsigned long reset_pending; /* client rst is pending to be served */ struct hclge_rst_stats rst_stats; - u32 reset_fail_cnt; u32 fw_version; u16 num_vmdq_vport; /* Num vmdq vport this PF has set up */ u16 num_tqps; /* Num task queue pairs of this PF */ |