]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/i40e/base/i40e_common.c
net/i40e/base: correct global reset timeout calculation
[dpdk.git] / drivers / net / i40e / base / i40e_common.c
index 0affa98ac9253e58d631c373825249a2c4d6836c..0eb369ff6c7956b0a659d60c771b2dbd22497728 100644 (file)
@@ -1342,7 +1342,7 @@ enum i40e_status_code i40e_pf_reset(struct i40e_hw *hw)
                        I40E_GLGEN_RSTCTL_GRSTDEL_MASK) >>
                        I40E_GLGEN_RSTCTL_GRSTDEL_SHIFT;
 
-       grst_del = grst_del * 20;
+       grst_del = min(grst_del * 20, 160U);
 
        for (cnt = 0; cnt < grst_del; cnt++) {
                reg = rd32(hw, I40E_GLGEN_RSTAT);