Skip to content

Commit 9e15410

Browse files
emuslndavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bb9f80f commit 9e15410

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/net/ethernet/pensando/ionic/ionic_if.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ enum ionic_status_code {
9696
IONIC_RC_ERROR = 29, /* Generic error */
9797
IONIC_RC_ERDMA = 30, /* Generic RDMA error */
9898
IONIC_RC_EVFID = 31, /* VF ID does not exist */
99+
IONIC_RC_EBAD_FW = 32, /* FW file is invalid or corrupted */
99100
};
100101

101102
enum ionic_notifyq_opcode {

drivers/net/ethernet/pensando/ionic/ionic_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ static const char *ionic_error_to_str(enum ionic_status_code code)
6464
return "IONIC_RC_ERROR";
6565
case IONIC_RC_ERDMA:
6666
return "IONIC_RC_ERDMA";
67+
case IONIC_RC_EBAD_FW:
68+
return "IONIC_RC_EBAD_FW";
6769
default:
6870
return "IONIC_RC_UNKNOWN";
6971
}

0 commit comments

Comments
 (0)