aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_rc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_rc.c')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_rc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_rc.c b/drivers/infiniband/hw/ipath/ipath_rc.c
index 898f996513f..595941b2b1b 100644
--- a/drivers/infiniband/hw/ipath/ipath_rc.c
+++ b/drivers/infiniband/hw/ipath/ipath_rc.c
@@ -1234,7 +1234,7 @@ static inline int ipath_rc_rcv_error(struct ipath_ibdev *dev,
1234 * Address range must be a subset of the original 1234 * Address range must be a subset of the original
1235 * request and start on pmtu boundaries. 1235 * request and start on pmtu boundaries.
1236 */ 1236 */
1237 ok = ipath_rkey_ok(dev, &qp->s_rdma_sge, 1237 ok = ipath_rkey_ok(qp, &qp->s_rdma_sge,
1238 qp->s_rdma_len, vaddr, rkey, 1238 qp->s_rdma_len, vaddr, rkey,
1239 IB_ACCESS_REMOTE_READ); 1239 IB_ACCESS_REMOTE_READ);
1240 if (unlikely(!ok)) { 1240 if (unlikely(!ok)) {
@@ -1532,7 +1532,7 @@ void ipath_rc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
1532 int ok; 1532 int ok;
1533 1533
1534 /* Check rkey & NAK */ 1534 /* Check rkey & NAK */
1535 ok = ipath_rkey_ok(dev, &qp->r_sge, 1535 ok = ipath_rkey_ok(qp, &qp->r_sge,
1536 qp->r_len, vaddr, rkey, 1536 qp->r_len, vaddr, rkey,
1537 IB_ACCESS_REMOTE_WRITE); 1537 IB_ACCESS_REMOTE_WRITE);
1538 if (unlikely(!ok)) 1538 if (unlikely(!ok))
@@ -1574,7 +1574,7 @@ void ipath_rc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
1574 int ok; 1574 int ok;
1575 1575
1576 /* Check rkey & NAK */ 1576 /* Check rkey & NAK */
1577 ok = ipath_rkey_ok(dev, &qp->s_rdma_sge, 1577 ok = ipath_rkey_ok(qp, &qp->s_rdma_sge,
1578 qp->s_rdma_len, vaddr, rkey, 1578 qp->s_rdma_len, vaddr, rkey,
1579 IB_ACCESS_REMOTE_READ); 1579 IB_ACCESS_REMOTE_READ);
1580 if (unlikely(!ok)) { 1580 if (unlikely(!ok)) {
@@ -1633,7 +1633,7 @@ void ipath_rc_rcv(struct ipath_ibdev *dev, struct ipath_ib_header *hdr,
1633 goto nack_inv; 1633 goto nack_inv;
1634 rkey = be32_to_cpu(ateth->rkey); 1634 rkey = be32_to_cpu(ateth->rkey);
1635 /* Check rkey & NAK */ 1635 /* Check rkey & NAK */
1636 if (unlikely(!ipath_rkey_ok(dev, &qp->r_sge, 1636 if (unlikely(!ipath_rkey_ok(qp, &qp->r_sge,
1637 sizeof(u64), vaddr, rkey, 1637 sizeof(u64), vaddr, rkey,
1638 IB_ACCESS_REMOTE_ATOMIC))) 1638 IB_ACCESS_REMOTE_ATOMIC)))
1639 goto nack_acc; 1639 goto nack_acc;