[ofa-general] ***SPAM*** [PATCH] core/iwcm: remove IB_ACCESS_LOCAL_WRITE in remote QP attributes

Dotan Barak dotanba at gmail.com
Fri Jul 18 01:19:26 PDT 2008


IB_ACCESS_LOCAL_WRITE was removed for qp.qp_access_flags because
this attribute is relevant only for remote permissions.

Signed-off-by: Dotan Barak <dotanba at gmail.com>

---

diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index 81c9195..53f53fc 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -942,8 +942,7 @@ static int iwcm_init_qp_init_attr(struct iwcm_id_private *cm_id_priv,
 	case IW_CM_STATE_CONN_RECV:
 	case IW_CM_STATE_ESTABLISHED:
 		*qp_attr_mask = IB_QP_STATE | IB_QP_ACCESS_FLAGS;
-		qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE |
-					   IB_ACCESS_REMOTE_WRITE|
+		qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE|
 					   IB_ACCESS_REMOTE_READ;
 		ret = 0;
 		break;



More information about the general mailing list