Skip to content

Commit

Permalink
IB/mad: Add MAD error codes from IBA spec
Browse files Browse the repository at this point in the history
Add defines for MAD error codes so that they can be used when
returning error responses.

Signed-off-by: Swapna Thete <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
  • Loading branch information
Swapna Thete authored and rolandd committed Feb 26, 2012
1 parent 6b21d18 commit d144b65
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/rdma/ib_mad.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d144b65

Please sign in to comment.