Skip to content

Commit

Permalink
net/i40e/base: fix PF reset
Browse files Browse the repository at this point in the history
[ upstream commit 25829b5 ]

PF has to delete all the filters during reset.
If it is fully loaded with filters then it is possible that it will take
more than 200 ms to finish the reset resulting in timeout during pf_reset
and PF reset failed, -15 error indication.

Increasing the timeout value for PF reset from 200 to 1000 to give PF
more time to finish reset if it is loaded with filters.

Fixes: 1e32378 ("i40e/base: increase PF reset max loop limit")

Signed-off-by: Sylwester Dziedziuch <sylwesterx.dziedziuch@intel.com>
Signed-off-by: Robin Zhang <robinx.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
  • Loading branch information
RobinXZhang authored and cpaelzer committed Nov 30, 2021
1 parent acd346a commit f2c2ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/i40e/base/i40e_common.c
Expand Up @@ -1326,7 +1326,7 @@ STATIC enum i40e_status_code i40e_poll_globr(struct i40e_hw *hw,
return I40E_ERR_RESET_FAILED;
}

#define I40E_PF_RESET_WAIT_COUNT 200
#define I40E_PF_RESET_WAIT_COUNT 1000
/**
* i40e_pf_reset - Reset the PF
* @hw: pointer to the hardware structure
Expand Down

0 comments on commit f2c2ed3

Please sign in to comment.