* [PATCH v3 2/7] nvme-fabrics: Add FC transport error codes to nvme.h
@ 2016-10-23 19:31 James Smart
2016-10-25 16:36 ` Christoph Hellwig
0 siblings, 1 reply; 3+ messages in thread
From: James Smart @ 2016-10-23 19:31 UTC (permalink / raw)
Add FC transport error codes to nvme.h
Signed-off-by: James Smart <james.smart at broadcom.com>
---
include/linux/nvme.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 7676557..4bfaaae 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -943,6 +943,26 @@ 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,
+
+ /* IU format error */
+ NVME_SC_FC_FORMAT = 0x00B2,
+
+ /* NVME Completion did not contain original CMDID */
+ NVME_SC_FC_CMDID_MISMATCH = 0x00B3,
+
};
struct nvme_completion {
--
2.5.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH v3 2/7] nvme-fabrics: Add FC transport error codes to nvme.h
2016-10-23 19:31 [PATCH v3 2/7] nvme-fabrics: Add FC transport error codes to nvme.h James Smart
@ 2016-10-25 16:36 ` Christoph Hellwig
2016-10-25 23:48 ` J Freyensee
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2016-10-25 16:36 UTC (permalink / raw)
Looks fine,
Reviewed-by: Christoph Hellwig <hch at lst.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v3 2/7] nvme-fabrics: Add FC transport error codes to nvme.h
2016-10-25 16:36 ` Christoph Hellwig
@ 2016-10-25 23:48 ` J Freyensee
0 siblings, 0 replies; 3+ messages in thread
From: J Freyensee @ 2016-10-25 23:48 UTC (permalink / raw)
On Tue, 2016-10-25@09:36 -0700, Christoph Hellwig wrote:
> Looks fine,
>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
>
Also looks fine,
Reviewed-by: Jay Freyensee <james_p_freyensee at linux.intel.com>
> _______________________________________________
> Linux-nvme mailing list
> Linux-nvme at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-nvme
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-25 23:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-23 19:31 [PATCH v3 2/7] nvme-fabrics: Add FC transport error codes to nvme.h James Smart
2016-10-25 16:36 ` Christoph Hellwig
2016-10-25 23:48 ` J Freyensee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).