summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2021-04-17 10:09:22 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-20 01:38:05 +0300
commit1c5a2ba67989c01b8aeda81969b7a4a3702c51b5 (patch)
treec35e744aa2a600eaed59b68dfb01b57467e9141e
parent46fd4471615c1bff9d87c411140807762c25667a (diff)
downloadlinux-1c5a2ba67989c01b8aeda81969b7a4a3702c51b5.tar.xz
net: hns3: remove a duplicate pf reset counting
When enter suspend mode the counter of pf reset will be increased twice, since both hclge_prepare_general() and hclge_prepare_wait() increase this counter. So remove the duplicate counting in hclge_prepare_general(). Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index dc06986055e4..c296ab64fb0a 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
@@ -11126,8 +11126,6 @@ retry:
if (hdev->reset_type == HNAE3_FLR_RESET)
hdev->rst_stats.flr_rst_cnt++;
- else if (hdev->reset_type == HNAE3_FUNC_RESET)
- hdev->rst_stats.pf_rst_cnt++;
}
static void hclge_reset_done(struct hnae3_ae_dev *ae_dev)