net: hns3: Add enable and process hw errors of TM scheduler
[muen/linux.git] / drivers / net / ethernet / hisilicon / hns3 / hns3pf / hclge_main.c
index 082ea9749a54f875559b91dcf4f59e79b325f6c5..5234b5373ed3b9257aad7ad3f480040694623721 100644 (file)
@@ -6881,6 +6881,12 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev)
                return ret;
        }
 
+       /* Re-enable the TM hw error interrupts because
+        * they get disabled on core/global reset.
+        */
+       if (hclge_enable_tm_hw_error(hdev, true))
+               dev_err(&pdev->dev, "failed to enable TM hw error interrupts\n");
+
        dev_info(&pdev->dev, "Reset done, %s driver initialization finished.\n",
                 HCLGE_DRIVER_NAME);