mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
net: hns3: handle pending reset while reset fail
The ongoing lower-level reset will fail when there is a higher-level
reset occurs, so the error handler should deal with this situation.
Fixes: 6a5f6fa382 ("net: hns3: add error handler for hclgevf_reset()")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4f765d3e52
commit
cf1f212916
|
|
@ -1474,6 +1474,8 @@ static int hclgevf_reset(struct hclgevf_dev *hdev)
|
|||
*/
|
||||
hclgevf_cmd_init(hdev);
|
||||
dev_err(&hdev->pdev->dev, "failed to reset VF\n");
|
||||
if (hclgevf_is_reset_pending(hdev))
|
||||
hclgevf_reset_task_schedule(hdev);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user