From: Lance Richardson Date: Sun, 2 Jun 2019 17:42:40 +0000 (-0400) Subject: net/bnxt: reset function earlier in initialization X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5a8d1496a537c38fde0e8e332fca26f855978d31;p=dpdk.git net/bnxt: reset function earlier in initialization Move function reset to beginnng of initialization sequence. Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 61ae799e00..72679bed96 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -3484,6 +3484,14 @@ skip_ext_stats: rc = bnxt_hwrm_ver_get(bp); if (rc) goto error_free; + + rc = bnxt_hwrm_func_reset(bp); + if (rc) { + PMD_DRV_LOG(ERR, "hwrm chip reset failure rc: %x\n", rc); + rc = -EIO; + goto error_free; + } + rc = bnxt_hwrm_queue_qportcfg(bp); if (rc) { PMD_DRV_LOG(ERR, "hwrm queue qportcfg failed\n"); @@ -3584,12 +3592,6 @@ skip_ext_stats: pci_dev->mem_resource[0].phys_addr, pci_dev->mem_resource[0].addr); - rc = bnxt_hwrm_func_reset(bp); - if (rc) { - PMD_DRV_LOG(ERR, "hwrm chip reset failure rc: %x\n", rc); - rc = -EIO; - goto error_free; - } if (BNXT_PF(bp)) { //if (bp->pf.active_vfs) {