summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe
diff options
context:
space:
mode:
authorMichael Brown2010-09-22 21:05:39 +0200
committerMichael Brown2010-09-22 21:05:39 +0200
commit29ad8a922b3d1ec1cb743f5e9c6907e5c0f00c99 (patch)
tree4c789967cad14ade04c876bd0e09003b71d2798d /src/include/ipxe
parent[libc] Ensure that error numbers from EUNIQ() have the correct type (diff)
downloadipxe-29ad8a922b3d1ec1cb743f5e9c6907e5c0f00c99.tar.gz
ipxe-29ad8a922b3d1ec1cb743f5e9c6907e5c0f00c99.tar.xz
ipxe-29ad8a922b3d1ec1cb743f5e9c6907e5c0f00c99.zip
[infiniband] Include the SRP login rejection reason in the error number
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r--src/include/ipxe/srp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/ipxe/srp.h b/src/include/ipxe/srp.h
index acde7c94a..8d7f799cd 100644
--- a/src/include/ipxe/srp.h
+++ b/src/include/ipxe/srp.h
@@ -242,6 +242,10 @@ struct srp_login_rej {
/** RDMA channel limit reached for this initiator */
#define SRP_LOGIN_REJ_REASON_NO_MORE_CHANNELS 0x00010006UL
+/** SRP login rejection reason is defined */
+#define SRP_LOGIN_REJ_REASON_DEFINED( reason ) \
+ ( ( (reason) & 0xfffffff0UL ) == 0x00010000UL )
+
/** Indirect data buffer descriptor format supported */
#define SRP_LOGIN_REJ_FMT_IDBD 0x04