Skip to content

Commit 8c9200e

Browse files
Yufeng Modavem330
authored andcommitted
net: hns3: clear unnecessary reset request in hclge_reset_rebuild
HW error and global reset are reported through MSIX interrupts. The same error may be reported to different functions at the same time. When global reset begins, the pending reset request set by this error is unnecessary. So clear the pending reset request after the reset is complete to avoid the repeated reset. Fixes: f6162d4 ("net: hns3: add handling of hw errors reported through MSIX") Signed-off-by: Yufeng Mo <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b416e87 commit 8c9200e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3978,6 +3978,12 @@ static void hclge_update_reset_level(struct hclge_dev *hdev)
39783978
struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev);
39793979
enum hnae3_reset_type reset_level;
39803980

3981+
/* reset request will not be set during reset, so clear
3982+
* pending reset request to avoid unnecessary reset
3983+
* caused by the same reason.
3984+
*/
3985+
hclge_get_reset_level(ae_dev, &hdev->reset_request);
3986+
39813987
/* if default_reset_request has a higher level reset request,
39823988
* it should be handled as soon as possible. since some errors
39833989
* need this kind of reset to fix.

0 commit comments

Comments
 (0)