From bee1f7fe154189c5d8ce162d93e8ad0c5e09a6b7 Mon Sep 17 00:00:00 2001 From: Steve Wise Date: Fri, 15 Dec 2006 16:56:06 -0600 Subject: [PATCH] librdmacm Pass back the status or errno in RDMA CM events. 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 Signed-off-by: Sean Hefty --- src/cma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cma.c b/src/cma.c index 5cffa181..850f3812 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 -- 2.41.0