Skip to content

Commit cba3bdf

Browse files
jsmart-ghsagigrimberg
authored andcommitted
nvme-fabrics: Add FC transport error codes to nvme.h
Signed-off-by: James Smart <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Jay Freyensee <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 6ea76f3 commit cba3bdf

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/linux/nvme.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,19 @@ enum {
963963
NVME_SC_ACCESS_DENIED = 0x286,
964964

965965
NVME_SC_DNR = 0x4000,
966+
967+
968+
/*
969+
* FC Transport-specific error status values for NVME commands
970+
*
971+
* Transport-specific status code values must be in the range 0xB0..0xBF
972+
*/
973+
974+
/* Generic FC failure - catchall */
975+
NVME_SC_FC_TRANSPORT_ERROR = 0x00B0,
976+
977+
/* I/O failure due to FC ABTS'd */
978+
NVME_SC_FC_TRANSPORT_ABORTED = 0x00B1,
966979
};
967980

968981
struct nvme_completion {

0 commit comments

Comments
 (0)