Skip to content

Commit 7b8ff0f

Browse files
praczynsJeff Kirsher
authored andcommitted
ice: Increase Rx queue disable timeout
With much traffic coming into the port, Rx queue disable procedure can take more time until all pending queue requests on PCIe finish. Reuse ICE_Q_WAIT_MAX_RETRY macro and increase the delay itself. Signed-off-by: Piotr Raczynski <[email protected]> Signed-off-by: Anirudh Venkataramanan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 6263e81 commit 7b8ff0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/net/ethernet/intel/ice/ice_lib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ static int ice_pf_rxq_wait(struct ice_pf *pf, int pf_q, bool ena)
174174
{
175175
int i;
176176

177-
for (i = 0; i < ICE_Q_WAIT_RETRY_LIMIT; i++) {
177+
for (i = 0; i < ICE_Q_WAIT_MAX_RETRY; i++) {
178178
u32 rx_reg = rd32(&pf->hw, QRX_CTRL(pf_q));
179179

180180
if (ena == !!(rx_reg & QRX_CTRL_QENA_STAT_M))
181181
break;
182182

183-
usleep_range(10, 20);
183+
usleep_range(20, 40);
184184
}
185-
if (i >= ICE_Q_WAIT_RETRY_LIMIT)
185+
if (i >= ICE_Q_WAIT_MAX_RETRY)
186186
return -ETIMEDOUT;
187187

188188
return 0;

0 commit comments

Comments
 (0)