Skip to content

Commit

Permalink
net/bnxt: fix error log for command timeout
Browse files Browse the repository at this point in the history
[ upstream commit 4939f37 ]

Log the command sequence number to aid debug in case of a
FW command timeout.

Fixes: 804e746 ("net/bnxt: add hardware resource manager init code")

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
  • Loading branch information
ajitkhaparde authored and kevintraynor committed Jun 5, 2020
1 parent 8cd93f8 commit ba4ca79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/bnxt/bnxt_hwrm.c
Expand Up @@ -141,8 +141,9 @@ static int bnxt_hwrm_send_message(struct bnxt *bp, void *msg,
}

if (i >= timeout) {
PMD_DRV_LOG(ERR, "Error(timeout) sending msg 0x%04x\n",
req->req_type);
PMD_DRV_LOG(ERR,
"Error(timeout) sending msg 0x%04x, seq_id %d\n",
req->req_type, req->seq_id);
return -ETIMEDOUT;
}
return 0;
Expand Down

0 comments on commit ba4ca79

Please sign in to comment.