提交 d144b650 编写于 作者: S Swapna Thete 提交者: Roland Dreier

IB/mad: Add MAD error codes from IBA spec

Add defines for MAD error codes so that they can be used when
returning error responses.
Signed-off-by: NSwapna Thete <swapna.thete@qlogic.com>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 6b21d18e
...@@ -77,6 +77,15 @@ ...@@ -77,6 +77,15 @@
#define IB_MGMT_MAX_METHODS 128 #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 */ /* RMPP information */
#define IB_MGMT_RMPP_VERSION 1 #define IB_MGMT_RMPP_VERSION 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册