net/bnxt: fix FW unregister log
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 6 Apr 2021 06:04:03 +0000 (11:34 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Wed, 7 Apr 2021 02:57:26 +0000 (04:57 +0200)
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 <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_hwrm.c

index 6a70b6e..a119fc3 100644 (file)
@@ -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;
 }