git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/i40e/base: correct global reset timeout calculation
[dpdk.git]
/
drivers
/
net
/
i40e
/
base
/
i40e_common.c
diff --git
a/drivers/net/i40e/base/i40e_common.c
b/drivers/net/i40e/base/i40e_common.c
index
0affa98
..
0eb369f
100644
(file)
--- a/
drivers/net/i40e/base/i40e_common.c
+++ b/
drivers/net/i40e/base/i40e_common.c
@@
-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);