net/bnxt: reduce polling interval for valid bit

Change polling interval for valid bit in bnxt_hwrm_send_message
Poll every 1us instead of 600us.

Fixes: 804e746c7b ("net/bnxt: add hardware resource manager init code")
Cc: stable@dpdk.org

Signed-off-by: Xiaoxin Peng <xiaoxin.peng@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
This commit is contained in:
Xiaoxin Peng 2018-09-28 19:00:06 -07:00 committed by Ferruh Yigit
parent 6f93b2aa2d
commit a830900063

View File

@ -26,7 +26,7 @@
#include <rte_io.h>
#define HWRM_CMD_TIMEOUT 10000
#define HWRM_CMD_TIMEOUT 6000000
#define HWRM_SPEC_CODE_1_8_3 0x10803
#define HWRM_VERSION_1_9_1 0x10901
@ -135,7 +135,7 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg,
if (*valid == HWRM_RESP_VALID_KEY)
break;
}
rte_delay_us(600);
rte_delay_us(1);
}
if (i >= HWRM_CMD_TIMEOUT) {