From 29ad8a922b3d1ec1cb743f5e9c6907e5c0f00c99 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 22 Sep 2010 20:05:39 +0100 Subject: [infiniband] Include the SRP login rejection reason in the error number Signed-off-by: Michael Brown --- src/include/ipxe/srp.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include') 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 -- cgit v1.2.3-55-g7522