summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2016-12-02 00:28:39 -0800
committerSagi Grimberg <sagi@grimberg.me>2016-12-06 10:17:56 +0200
commitcba3bdfd2e89edd706e2c40dfad914aca663b6ac (patch)
tree6db3ea483ca85e42217a66cc523bd1ae5f29684c
parent6ea76f33e9ab99c7888547e1acba2baf8e4b5b17 (diff)
downloadlinux-cba3bdfd2e89edd706e2c40dfad914aca663b6ac.tar.gz
linux-cba3bdfd2e89edd706e2c40dfad914aca663b6ac.tar.bz2
linux-cba3bdfd2e89edd706e2c40dfad914aca663b6ac.zip
nvme-fabrics: Add FC transport error codes to nvme.h
Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--include/linux/nvme.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 0df9466a7c38..5ac1f57226f4 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -963,6 +963,19 @@ enum {
NVME_SC_ACCESS_DENIED = 0x286,
NVME_SC_DNR = 0x4000,
+
+
+ /*
+ * FC Transport-specific error status values for NVME commands
+ *
+ * Transport-specific status code values must be in the range 0xB0..0xBF
+ */
+
+ /* Generic FC failure - catchall */
+ NVME_SC_FC_TRANSPORT_ERROR = 0x00B0,
+
+ /* I/O failure due to FC ABTS'd */
+ NVME_SC_FC_TRANSPORT_ABORTED = 0x00B1,
};
struct nvme_completion {