diff options
author | Steve Wise <swise@opengridcomputing.com> | 2008-08-04 22:05:43 +0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-08-04 22:05:43 +0400 |
commit | 1c355a6e80fd08e623416138631e240f431385f2 (patch) | |
tree | 923c13058b6c21836d8f4990f050c7511bc06ec9 /drivers/infiniband/hw/cxgb3/iwch_qp.c | |
parent | 5f0f66b022ba607db0a083bf5cc13e4a4336e366 (diff) | |
download | linux-1c355a6e80fd08e623416138631e240f431385f2.tar.xz |
RDMA/cxgb3: Fix up MW access rights
- MWs don't have local read/write permissions.
- Set the MW_BIND enabled bit if a MR has MW_BIND access.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_qp.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c index 893971612eda..3e4585c2318a 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_qp.c +++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c @@ -565,7 +565,7 @@ int iwch_bind_mw(struct ib_qp *qp, wqe->bind.type = TPT_VATO; /* TBD: check perms */ - wqe->bind.perms = iwch_ib_to_tpt_access(mw_bind->mw_access_flags); + wqe->bind.perms = iwch_ib_to_tpt_bind_access(mw_bind->mw_access_flags); wqe->bind.mr_stag = cpu_to_be32(mw_bind->mr->lkey); wqe->bind.mw_stag = cpu_to_be32(mw->rkey); wqe->bind.mw_len = cpu_to_be32(mw_bind->length); |