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

From: Michael S. Tsirkin
Date: Mon Jul 10 2006 - 18:41:51 EST


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

---

From: "Ira Weiny" <weiny2@xxxxxxxx>

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

Signed-off-by: Sean Hefty <sean.hefty@xxxxxxxxx>
Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxxxxxx>

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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/