From: Kalesh AP Date: Tue, 6 Apr 2021 06:04:03 +0000 (+0530) Subject: net/bnxt: fix FW unregister log X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8c46bd112e2bbc165848ca98974fe89ae63906ff;p=dpdk.git net/bnxt: fix FW unregister log The "Unregistered with fw" message was being logged in a wrong function. Moved it to the right place. Fixes: a7dda7e0a00b ("net/bnxt: log port id in async events") Signed-off-by: Kalesh AP Reviewed-by: Somnath Kotur Reviewed-by: Ajit Khaparde --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 6a70b6e663..a119fc3a0b 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -1364,6 +1364,9 @@ int bnxt_hwrm_func_driver_unregister(struct bnxt *bp, uint32_t flags) HWRM_CHECK_RESULT(); HWRM_UNLOCK(); + PMD_DRV_LOG(DEBUG, "Port %u: Unregistered with fw\n", + bp->eth_dev->data->port_id); + return rc; } @@ -1448,8 +1451,6 @@ static int bnxt_hwrm_port_phy_cfg(struct bnxt *bp, struct bnxt_link_info *conf) HWRM_CHECK_RESULT(); HWRM_UNLOCK(); - PMD_DRV_LOG(DEBUG, "Port %u: Unregistered with fw\n", - bp->eth_dev->data->port_id); return rc; }