From: Jingjing Wu Date: Sun, 6 Sep 2015 07:12:01 +0000 (+0800) Subject: i40e/base: increase PF reset max loop limit X-Git-Tag: spdx-start~8446 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1e32378f0774c51461ad2dd4c73fc65817eadab2;p=dpdk.git i40e/base: increase PF reset max loop limit With latest LANconf and NVMupdate tools, pf_reset failed due to Firmware not being ready, so this patch increases I40E_PF_RESET_WAIT_COUNT to 200, using original value defined for A0 silicon, in order to make sure that FW is ready. Test result indicates that firmware became ready at the loop count of 114. Signed-off-by: Jingjing Wu Acked-by: Helin Zhang Tested-by: Huilong Xu --- diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c index 13ad03fba9..3ba2aeeaf3 100644 --- a/drivers/net/i40e/base/i40e_common.c +++ b/drivers/net/i40e/base/i40e_common.c @@ -1102,7 +1102,7 @@ STATIC enum i40e_media_type i40e_get_media_type(struct i40e_hw *hw) return media; } -#define I40E_PF_RESET_WAIT_COUNT 110 +#define I40E_PF_RESET_WAIT_COUNT 200 /** * i40e_pf_reset - Reset the PF * @hw: pointer to the hardware structure