diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2020-01-21 16:42:07 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-21 11:46:20 +0100 |
commit | afb6afdb8dc67988d17e4926df8c8fe248ea555a (patch) | |
tree | f378f672c3cc87f31591a66d3f1ed0eda4bbe9d9 /drivers | |
parent | 08bb3857c6c2e2a62fe0cdc593af57215e9b95bc (diff) | |
download | linux-stable-afb6afdb8dc67988d17e4926df8c8fe248ea555a.tar.gz linux-stable-afb6afdb8dc67988d17e4926df8c8fe248ea555a.tar.bz2 linux-stable-afb6afdb8dc67988d17e4926df8c8fe248ea555a.zip |
net: hns3: set VF's default reset_type to HNAE3_NONE_RESET
reset_type means what kind of reset the driver is handling now,
so after initializing or reset, the reset_type of VF should be
set to HNAE3_NONE_RESET, otherwise, this unknown default value
may be a little misleading when the device is running.
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index b26b8ad170d0..2a472b06a337 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -1862,6 +1862,7 @@ static void hclgevf_reset_service_task(struct hclgevf_dev *hdev) hclgevf_reset_task_schedule(hdev); } + hdev->reset_type = HNAE3_NONE_RESET; clear_bit(HCLGEVF_STATE_RST_HANDLING, &hdev->state); up(&hdev->reset_sem); } @@ -2742,6 +2743,7 @@ static int hclgevf_init_hdev(struct hclgevf_dev *hdev) hclgevf_state_init(hdev); hdev->reset_level = HNAE3_VF_FUNC_RESET; + hdev->reset_type = HNAE3_NONE_RESET; ret = hclgevf_misc_irq_init(hdev); if (ret) { |