]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
net: hns3: add reset statistics for VF
[linux.git] / drivers / net / ethernet / hisilicon / hns3 / hns3vf / hclgevf_main.h
index 49e5bec53d45624d8afae0475d4f1737f02e59b4..d39c0323ca99f922ca6b071c65a4327f82b65fd6 100644 (file)
@@ -210,6 +210,15 @@ struct hclgevf_misc_vector {
        int vector_irq;
 };
 
+struct hclgevf_rst_stats {
+       u32 rst_cnt;                    /* the number of reset */
+       u32 vf_func_rst_cnt;            /* the number of VF function reset */
+       u32 flr_rst_cnt;                /* the number of FLR */
+       u32 vf_rst_cnt;                 /* the number of VF reset */
+       u32 rst_done_cnt;               /* the number of reset completed */
+       u32 hw_rst_done_cnt;            /* the number of HW reset completed */
+};
+
 struct hclgevf_dev {
        struct pci_dev *pdev;
        struct hnae3_ae_dev *ae_dev;
@@ -227,7 +236,7 @@ struct hclgevf_dev {
 #define HCLGEVF_RESET_REQUESTED                0
 #define HCLGEVF_RESET_PENDING          1
        unsigned long reset_state;      /* requested, pending */
-       unsigned long reset_count;      /* the number of reset has been done */
+       struct hclgevf_rst_stats rst_stats;
        u32 reset_attempts;
 
        u32 fw_version;