diff options
author | Michael J. Ruhl <michael.j.ruhl@intel.com> | 2019-06-28 20:22:11 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-06-29 03:34:26 +0200 |
commit | 2b0ad2da8fd4c32f63d9142f2de43a4d34fdd679 (patch) | |
tree | 54bd0dba68e2e9e1e4d44888b2f1bad20e473b0b /drivers/infiniband/sw | |
parent | IB/{rdmavt, hfi1, qib}: Remove AH refcount for UD QPs (diff) | |
download | linux-2b0ad2da8fd4c32f63d9142f2de43a4d34fdd679.tar.xz linux-2b0ad2da8fd4c32f63d9142f2de43a4d34fdd679.zip |
IB/{rdmavt, hfi1, qib}: Add helpers to hide SWQE WR details
Add some helper functions to hide struct rvt_swqe details.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r-- | drivers/infiniband/sw/rdmavt/qp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rdmavt/qp.c b/drivers/infiniband/sw/rdmavt/qp.c index de7d2edb9781..11b4d3c1efd4 100644 --- a/drivers/infiniband/sw/rdmavt/qp.c +++ b/drivers/infiniband/sw/rdmavt/qp.c @@ -2089,7 +2089,7 @@ static int rvt_post_one_wr(struct rvt_qp *qp, */ log_pmtu = qp->log_pmtu; if (qp->allowed_ops == IB_OPCODE_UD) { - struct rvt_ah *ah = ibah_to_rvtah(wqe->ud_wr.wr.ah); + struct rvt_ah *ah = rvt_get_swqe_ah(wqe); log_pmtu = ah->log_pmtu; rdma_copy_ah_attr(wqe->ud_wr.attr, &ah->attr); |