Skip to content

Commit d08a9f6

Browse files
Wyborny, CarolynJeff Kirsher
authored andcommitted
i40e: fix for queue timing delays
This patch adds a delay to Rx queue disables to accommodate HW needs. v2: Added missing check for disable only, additional details on the need for the ugly delay and fixed spacing on comment. Change-ID: I2864ca667ce5dcc2cc44f8718113b719742a46a1 Signed-off-by: Carolyn Wyborny <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent dab86af commit d08a9f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4067,6 +4067,12 @@ static int i40e_vsi_control_rx(struct i40e_vsi *vsi, bool enable)
40674067
}
40684068
}
40694069

4070+
/* Due to HW errata, on Rx disable only, the register can indicate done
4071+
* before it really is. Needs 50ms to be sure
4072+
*/
4073+
if (!enable)
4074+
mdelay(50);
4075+
40704076
return ret;
40714077
}
40724078

0 commit comments

Comments
 (0)