diff options
author | Sean Hefty <sean.hefty@intel.com> | 2006-08-28 11:55:52 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-22 15:22:42 -0700 |
commit | c1f250c0b45cdfdd89b21f2b866f317439aa21de (patch) | |
tree | 5cc5fab7be988579743d896fab5a01864a2c0df1 | |
parent | 9e583b85c2a0215dc7f4427361b4f75fcc0316af (diff) | |
download | blackbird-op-linux-c1f250c0b45cdfdd89b21f2b866f317439aa21de.tar.gz blackbird-op-linux-c1f250c0b45cdfdd89b21f2b866f317439aa21de.zip |
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>
-rw-r--r-- | drivers/infiniband/core/cm.c | 3 |
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, qp_attr->qp_access_flags = IB_ACCESS_LOCAL_WRITE | IB_ACCESS_REMOTE_WRITE; if (cm_id_priv->responder_resources) - qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ; + qp_attr->qp_access_flags |= IB_ACCESS_REMOTE_READ | + IB_ACCESS_REMOTE_ATOMIC; qp_attr->pkey_index = cm_id_priv->av.pkey_index; qp_attr->port_num = cm_id_priv->av.port->port_num; ret = 0; |