X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhns3%2Fhns3_intr.c;h=3484c76d232f7fefc8214ed9df89378eb6305a84;hb=3e7984b5d8ce790041a856048a89bb524e94d43d;hp=6bdb17f622e3b278e756c9cc44d83d3617e459de;hpb=ffb62592f80faf70fa3627c3de34e137883333cf;p=dpdk.git diff --git a/drivers/net/hns3/hns3_intr.c b/drivers/net/hns3/hns3_intr.c index 6bdb17f622..3484c76d23 100644 --- a/drivers/net/hns3/hns3_intr.c +++ b/drivers/net/hns3/hns3_intr.c @@ -2368,7 +2368,7 @@ hns3_handle_error(struct hns3_adapter *hns) { struct hns3_hw *hw = &hns->hw; - if (hns3_dev_ras_imp_supported(hw)) { + if (hns3_dev_get_support(hw, RAS_IMP)) { hns3_handle_hw_error_v2(hw); hns3_schedule_reset(hns); } else { @@ -2582,7 +2582,7 @@ hns3_clear_reset_level(struct hns3_hw *hw, uint64_t *levels) static bool hns3_reset_err_handle(struct hns3_adapter *hns) { -#define MAX_RESET_FAIL_CNT 5 +#define MAX_RESET_FAIL_CNT 30 struct hns3_hw *hw = &hns->hw; @@ -2676,7 +2676,7 @@ hns3_reset_pre(struct hns3_adapter *hns) static int hns3_reset_post(struct hns3_adapter *hns) { -#define TIMEOUT_RETRIES_CNT 5 +#define TIMEOUT_RETRIES_CNT 30 struct hns3_hw *hw = &hns->hw; struct timeval tv_delta; struct timeval tv;