Skip to content

Commit

Permalink
net/hns3: increase VF reset retry maximum
Browse files Browse the repository at this point in the history
[ upstream commit b25987f ]

When the device is very busy, VF reset may have to be
retried many times to succeed, leading to the current
max reset fail retry count not enough.

Modify max reset fail retry count to 30 to enhance
the reliability of reset function.

Fixes: 2790c64 ("net/hns3: support device reset")

Signed-off-by: Hongbo Zheng <zhenghongbo3@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
  • Loading branch information
Hongbo Zheng authored and cpaelzer committed Aug 9, 2021
1 parent 9e9fa80 commit ba81e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/hns3/hns3_intr.c
Expand Up @@ -855,7 +855,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;

Expand Down Expand Up @@ -949,7 +949,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;
Expand Down

0 comments on commit ba81e4b

Please sign in to comment.