[ofa-general] [PATCH] core/iwcm: Remove local write permission enable in QP access flags

Dotan Barak dotanb at dev.mellanox.co.il
Wed Jul 18 04:21:04 PDT 2007


Remove local write permission enable in QP access flags
(this attribute is being used only for remote connections).

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

---

diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index 223b1aa..44b0a3d 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -941,8 +941,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