From 8c46bd112e2bbc165848ca98974fe89ae63906ff Mon Sep 17 00:00:00 2001 From: Kalesh AP Date: Tue, 6 Apr 2021 11:34:03 +0530 Subject: [PATCH] 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 --- drivers/net/bnxt/bnxt_hwrm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.20.1