diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx4/qp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index bc5536f00b6c..fd97534762b8 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c | |||
@@ -1681,9 +1681,12 @@ static int __mlx4_ib_modify_qp(struct ib_qp *ibqp, | |||
1681 | } | 1681 | } |
1682 | 1682 | ||
1683 | if (qp->ibqp.uobject) | 1683 | if (qp->ibqp.uobject) |
1684 | context->usr_page = cpu_to_be32(to_mucontext(ibqp->uobject->context)->uar.index); | 1684 | context->usr_page = cpu_to_be32( |
1685 | mlx4_to_hw_uar_index(dev->dev, | ||
1686 | to_mucontext(ibqp->uobject->context)->uar.index)); | ||
1685 | else | 1687 | else |
1686 | context->usr_page = cpu_to_be32(dev->priv_uar.index); | 1688 | context->usr_page = cpu_to_be32( |
1689 | mlx4_to_hw_uar_index(dev->dev, dev->priv_uar.index)); | ||
1687 | 1690 | ||
1688 | if (attr_mask & IB_QP_DEST_QPN) | 1691 | if (attr_mask & IB_QP_DEST_QPN) |
1689 | context->remote_qpn = cpu_to_be32(attr->dest_qp_num); | 1692 | context->remote_qpn = cpu_to_be32(attr->dest_qp_num); |