Thread (1 message) 1 message, 1 author, 2012-01-18
DORMANTno replies

[PATCH 1/2] IB/mad: Add MAD error codes per IBTA spec

From: Swapna Thete <hidden>
Date: 2012-01-18 08:43:03
Subsystem: infiniband subsystem, the rest · Maintainers: Jason Gunthorpe, Leon Romanovsky, Linus Torvalds

Possibly related (same subject, not in this thread)

Add appropriate MAD error codes so that
they can be used while returning appropriate
error responses.
Signed-off-by: Swapna Thete <redacted>
---
 include/rdma/ib_mad.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h
index d3b9401..d9751b7 100644
--- a/include/rdma/ib_mad.h
+++ b/include/rdma/ib_mad.h
@@ -77,6 +77,15 @@
 
 #define IB_MGMT_MAX_METHODS			128
 
+/* MAD Status field bit masks */
+#define IB_MGMT_MAD_STATUS_SUCCESS					0x0000
+#define IB_MGMT_MAD_STATUS_BUSY						0x0001
+#define IB_MGMT_MAD_STATUS_REDIRECT_REQD				0x0002
+#define IB_MGMT_MAD_STATUS_BAD_VERSION					0x0004
+#define IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD			0x0008
+#define IB_MGMT_MAD_STATUS_UNSUPPORTED_METHOD_ATTRIB	0x000c
+#define IB_MGMT_MAD_STATUS_INVALID_ATTRIB_VALUE			0x001c
+
 /* RMPP information */
 #define IB_MGMT_RMPP_VERSION			1
 


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help