summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/keys.c
diff options
context:
space:
mode:
authorDennis Dalessandro <dennis.dalessandro@intel.com>2016-01-19 14:41:50 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:37:36 -0500
commit4f87ccfca0c29bb0fb9d2e6037656e871714f9e7 (patch)
tree707775ff7747e1a252a2f92a7d0f8d0ab4548000 /drivers/staging/rdma/hfi1/keys.c
parentf326674ae374e08b34d8b02b2357bad4ef07317c (diff)
downloadlinux-stable-4f87ccfca0c29bb0fb9d2e6037656e871714f9e7.tar.gz
linux-stable-4f87ccfca0c29bb0fb9d2e6037656e871714f9e7.tar.bz2
linux-stable-4f87ccfca0c29bb0fb9d2e6037656e871714f9e7.zip
staging/rdma/hfi1: Use rdmavt protection domain
Remove protection domain from hfi1 and use rdmavt's version. Reviewed-by: Ira Weiny <ira.weiny@intel.com> Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/keys.c')
-rw-r--r--drivers/staging/rdma/hfi1/keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rdma/hfi1/keys.c b/drivers/staging/rdma/hfi1/keys.c
index cb4e6087dfdb..57a266fc27dd 100644
--- a/drivers/staging/rdma/hfi1/keys.c
+++ b/drivers/staging/rdma/hfi1/keys.c
@@ -176,7 +176,7 @@ out:
* Check the IB SGE for validity and initialize our internal version
* of it.
*/
-int hfi1_lkey_ok(struct hfi1_lkey_table *rkt, struct hfi1_pd *pd,
+int hfi1_lkey_ok(struct hfi1_lkey_table *rkt, struct rvt_pd *pd,
struct hfi1_sge *isge, struct ib_sge *sge, int acc)
{
struct hfi1_mregion *mr;
@@ -285,7 +285,7 @@ int hfi1_rkey_ok(struct hfi1_qp *qp, struct hfi1_sge *sge,
*/
rcu_read_lock();
if (rkey == 0) {
- struct hfi1_pd *pd = to_ipd(qp->ibqp.pd);
+ struct rvt_pd *pd = ibpd_to_rvtpd(qp->ibqp.pd);
struct hfi1_ibdev *dev = to_idev(pd->ibpd.device);
if (pd->user)