diff options
author | Sean Hefty <sean.hefty@intel.com> | 2006-08-28 20:55:52 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-09-23 00:22:42 +0200 |
commit | c1f250c0b45cdfdd89b21f2b866f317439aa21de (patch) | |
tree | 5cc5fab7be988579743d896fab5a01864a2c0df1 /drivers | |
parent | IB/mthca: Return correct number of bits for static rate in query_qp (diff) | |
download | linux-c1f250c0b45cdfdd89b21f2b866f317439aa21de.tar.xz 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>
Diffstat (limited to 'drivers')
-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; |