From 37d7b38b51fe2af61ed219fe5dbc156cfdf66608 Mon Sep 17 00:00:00 2001 From: Bernard Iremonger Date: Fri, 3 Jul 2015 15:03:56 +0100 Subject: [PATCH] i40evf: increase messaging wait time Increase delay from 50 * 10 to 100 * 20 to avoid i40evf_read_pfmsg() failures. Signed-off-by: Bernard Iremonger Acked-by: Helin Zhang --- drivers/net/i40e/i40e_ethdev_vf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 22d6099542..90d1cbbc14 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); -- 2.20.1