summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Iremonger <bernard.iremonger@intel.com>2015-07-03 15:03:56 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-07-19 21:28:51 +0200
commit37d7b38b51fe2af61ed219fe5dbc156cfdf66608 (patch)
tree68c85d18516b41b9650f5d746f377d60acb940af
parent3cb446b4aeb2394d19ecbea7c64367453c26be34 (diff)
downloaddpdk-37d7b38b51fe2af61ed219fe5dbc156cfdf66608.zip
dpdk-37d7b38b51fe2af61ed219fe5dbc156cfdf66608.tar.gz
dpdk-37d7b38b51fe2af61ed219fe5dbc156cfdf66608.tar.xz
i40evf: increase messaging wait time
Increase delay from 50 * 10 to 100 * 20 to avoid i40evf_read_pfmsg() failures. Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com> Acked-by: Helin Zhang <helin.zhang@intel.com>
-rw-r--r--drivers/net/i40e/i40e_ethdev_vf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
index 22d6099..90d1cbb 100644
--- a/drivers/net/i40e/i40e_ethdev_vf.c
+++ b/drivers/net/i40e/i40e_ethdev_vf.c
@@ -298,8 +298,8 @@ i40evf_wait_cmd_done(struct rte_eth_dev *dev,
int i = 0;
enum i40evf_aq_result ret;
-#define MAX_TRY_TIMES 10
-#define ASQ_DELAY_MS 50
+#define MAX_TRY_TIMES 20
+#define ASQ_DELAY_MS 100
do {
/* Delay some time first */
rte_delay_ms(ASQ_DELAY_MS);