[openib-general] [PATCH 3/5] 2.6.19 rdma_cm: set status correct on route resolution error

Sean Hefty sean.hefty at intel.com
Fri Sep 29 11:57:09 PDT 2006


On reporting a route error, also include the status for the error, rather than
indicating a status of 0 when an error has occurred.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
---
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index f383a4f..d10fdf1 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -1308,6 +1308,7 @@ static void cma_query_handler(int status
 		work->old_state = CMA_ROUTE_QUERY;
 		work->new_state = CMA_ADDR_RESOLVED;
 		work->event.event = RDMA_CM_EVENT_ROUTE_ERROR;
+		work->event.status = status;
 	}
 
 	queue_work(cma_wq, &work->work);





More information about the general mailing list