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>
This commit is contained in:

committed by
Jason Gunthorpe

parent
d310c4bf8a
commit
2b0ad2da8f
@@ -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);
|
||||
|
Reference in New Issue
Block a user