aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/core/cm.c3
-rw-r--r--drivers/infiniband/core/cma.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 82bc83baceaf..78d9c0c33148 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -3172,8 +3172,7 @@ static int cm_init_qp_init_attr(struct cm_id_private *cm_id_priv,
3172 case IB_CM_ESTABLISHED: 3172 case IB_CM_ESTABLISHED:
3173 *qp_attr_mask = IB_QP_STATE | IB_QP_ACCESS_FLAGS | 3173 *qp_attr_mask = IB_QP_STATE | IB_QP_ACCESS_FLAGS |
3174 IB_QP_PKEY_INDEX | IB_QP_PORT; 3174 IB_QP_PKEY_INDEX | IB_QP_PORT;
3175 qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | 3175 qp_attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE;
3176 IB_ACCESS_REMOTE_WRITE;
3177 if (cm_id_priv->responder_resources) 3176 if (cm_id_priv->responder_resources)
3178 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ | 3177 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ |
3179 IB_ACCESS_REMOTE_ATOMIC; 3178 IB_ACCESS_REMOTE_ATOMIC;
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index b449e26b84d2..cf48f2697434 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -344,7 +344,7 @@ static int cma_init_ib_qp(struct rdma_id_private *id_priv, struct ib_qp *qp)
344 return ret; 344 return ret;
345 345
346 qp_attr.qp_state = IB_QPS_INIT; 346 qp_attr.qp_state = IB_QPS_INIT;
347 qp_attr.qp_access_flags = IB_ACCESS_LOCAL_WRITE; 347 qp_attr.qp_access_flags = 0;
348 qp_attr.port_num = id_priv->id.port_num; 348 qp_attr.port_num = id_priv->id.port_num;
349 return ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_ACCESS_FLAGS | 349 return ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_ACCESS_FLAGS |
350 IB_QP_PKEY_INDEX | IB_QP_PORT); 350 IB_QP_PKEY_INDEX | IB_QP_PORT);