mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
ionic: add new bad firmware error code
If the new firmware image downladed for update is corrupted or is a bad format, the download process will report a status code specifically for that. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bb9f80f31d
commit
9e15410dc7
2 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,7 @@ enum ionic_status_code {
|
||||||
IONIC_RC_ERROR = 29, /* Generic error */
|
IONIC_RC_ERROR = 29, /* Generic error */
|
||||||
IONIC_RC_ERDMA = 30, /* Generic RDMA error */
|
IONIC_RC_ERDMA = 30, /* Generic RDMA error */
|
||||||
IONIC_RC_EVFID = 31, /* VF ID does not exist */
|
IONIC_RC_EVFID = 31, /* VF ID does not exist */
|
||||||
|
IONIC_RC_EBAD_FW = 32, /* FW file is invalid or corrupted */
|
||||||
};
|
};
|
||||||
|
|
||||||
enum ionic_notifyq_opcode {
|
enum ionic_notifyq_opcode {
|
||||||
|
|
|
@ -64,6 +64,8 @@ static const char *ionic_error_to_str(enum ionic_status_code code)
|
||||||
return "IONIC_RC_ERROR";
|
return "IONIC_RC_ERROR";
|
||||||
case IONIC_RC_ERDMA:
|
case IONIC_RC_ERDMA:
|
||||||
return "IONIC_RC_ERDMA";
|
return "IONIC_RC_ERDMA";
|
||||||
|
case IONIC_RC_EBAD_FW:
|
||||||
|
return "IONIC_RC_EBAD_FW";
|
||||||
default:
|
default:
|
||||||
return "IONIC_RC_UNKNOWN";
|
return "IONIC_RC_UNKNOWN";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue