[openib-general] [PATCH] [cma] qp_access_flags was changed to zero

Dotan Barak dotanb at dev.mellanox.co.il
Mon Oct 23 01:10:04 PDT 2006


qp_access_flags was changed to zero (this attribute is for remote access permissions only and local write is invalid value).

Signed-off-by: Dotan Barak <dotanb at mellanox.co.il>
---

Index: last_stable/drivers/infiniband/core/cma.c
===================================================================
--- last_stable.orig/drivers/infiniband/core/cma.c	2006-06-03 12:38:27.000000000 +0300
+++ last_stable/drivers/infiniband/core/cma.c	2006-06-04 17:34:36.000000000 +0300
@@ -343,7 +343,7 @@ static int cma_init_ib_qp(struct rdma_id
 		return ret;
 
 	qp_attr.qp_state = IB_QPS_INIT;
-	qp_attr.qp_access_flags = IB_ACCESS_LOCAL_WRITE;
+	qp_attr.qp_access_flags = 0;
 	qp_attr.port_num = id_priv->id.port_num;
 	return ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_ACCESS_FLAGS |
 					  IB_QP_PKEY_INDEX | IB_QP_PORT);






More information about the general mailing list