]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/infiniband/hw/hfi1/uc.c
IB/core: Use rdma_ah_attr accessor functions
[karo-tx-linux.git] / drivers / infiniband / hw / hfi1 / uc.c
index f0bdb100e005332c4caabc386e672188c5125e49..5da1e4546543710a9b11a84c13cf2e368f7d0365 100644 (file)
@@ -94,7 +94,7 @@ int hfi1_make_uc_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps)
        }
 
        ohdr = &ps->s_txreq->phdr.hdr.u.oth;
-       if (qp->remote_ah_attr.ah_flags & IB_AH_GRH)
+       if (rdma_ah_get_ah_flags(&qp->remote_ah_attr) & IB_AH_GRH)
                ohdr = &ps->s_txreq->phdr.hdr.u.l.oth;
 
        /* Get the next send request. */
@@ -451,7 +451,7 @@ last_imm:
                wc.status = IB_WC_SUCCESS;
                wc.qp = &qp->ibqp;
                wc.src_qp = qp->remote_qpn;
-               wc.slid = qp->remote_ah_attr.dlid;
+               wc.slid = rdma_ah_get_dlid(&qp->remote_ah_attr);
                /*
                 * It seems that IB mandates the presence of an SL in a
                 * work completion only for the UD transport (see section
@@ -463,7 +463,7 @@ last_imm:
                 *
                 * See also OPA Vol. 1, section 9.7.6, and table 9-17.
                 */
-               wc.sl = qp->remote_ah_attr.sl;
+               wc.sl = rdma_ah_get_sl(&qp->remote_ah_attr);
                /* zero fields that are N/A */
                wc.vendor_err = 0;
                wc.pkey_index = 0;