[openib-general] [PATCH] IB/cm: set private data length for reject messages

Michael S. Tsirkin mst at mellanox.co.il
Mon Jul 10 15:43:42 PDT 2006


Hi Andrew,
Here's another infiniband patch that needs to go upstream.

---

From: "Ira Weiny" <weiny2 at llnl.gov>

Set private data length for reject messages to the correct size.
Fix from openib svn r8483.

Signed-off-by: Sean Hefty <sean.hefty at intel.com>
Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: openib/drivers/infiniband/core/cma.c
===================================================================
--- openib/drivers/infiniband/core/cma.c	(revision 8482)
+++ openib/drivers/infiniband/core/cma.c	(revision 8483)
@@ -906,6 +906,7 @@ static int cma_ib_handler(struct ib_cm_i
 		cma_modify_qp_err(&id_priv->id);
 		status = ib_event->param.rej_rcvd.reason;
 		event = RDMA_CM_EVENT_REJECTED;
+		private_data_len = IB_CM_REJ_PRIVATE_DATA_SIZE;
 		break;
 	default:
 		printk(KERN_ERR "RDMA CMA: unexpected IB CM event: %d",

-- 
MST




More information about the general mailing list