aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2006-08-28 14:55:52 -0400
committerRoland Dreier <rolandd@cisco.com>2006-09-22 18:22:42 -0400
commitc1f250c0b45cdfdd89b21f2b866f317439aa21de (patch)
tree5cc5fab7be988579743d896fab5a01864a2c0df1 /drivers/infiniband
parent9e583b85c2a0215dc7f4427361b4f75fcc0316af (diff)
IB/cm: Enable atomics along with RDMA reads
Enable atomic operations along with RDMA reads if a local RDMA read/atomic depth is provided by the user. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/core/cm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index 0de335b7bfc2..0df1454819ac 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -3125,7 +3125,8 @@ static int cm_init_qp_init_attr(struct cm_id_private *cm_id_priv,
3125 qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | 3125 qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE |
3126 IB_ACCESS_REMOTE_WRITE; 3126 IB_ACCESS_REMOTE_WRITE;
3127 if (cm_id_priv->responder_resources) 3127 if (cm_id_priv->responder_resources)
3128 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ; 3128 qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ |
3129 IB_ACCESS_REMOTE_ATOMIC;
3129 qp_attr->pkey_index = cm_id_priv->av.pkey_index; 3130 qp_attr->pkey_index = cm_id_priv->av.pkey_index;
3130 qp_attr->port_num = cm_id_priv->av.port->port_num; 3131 qp_attr->port_num = cm_id_priv->av.port->port_num;
3131 ret = 0; 3132 ret = 0;