[openib-general] [PATCH] librdmacm Pass back the status or errno in RDMA CM events.
Steve Wise
swise at opengridcomputing.com
Fri Dec 15 14:56:06 PST 2006
The librdmacm code isn't passing back the errno in all events.
For example, if a connection request times out the kernel CMA will pass
up event RDMA_CM_EVENT_UNREACHABLE with the status set to -ETIMEDOUT.
This errno isn't currently passed back to the librdmacm user in the event.
Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---
src/cma.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/cma.c b/src/cma.c
index 5cffa18..850f381 100644
--- a/src/cma.c
+++ b/src/cma.c
@@ -1302,6 +1302,7 @@ retry:
default:
evt->id_priv = (void *) (uintptr_t) resp->uid;
evt->event.id = &evt->id_priv->id;
+ evt->event.status = resp->status;
if (evt->id_priv->id.ps == RDMA_PS_TCP)
ucma_copy_conn_event(evt, &resp->param.conn);
else
More information about the general
mailing list