Lines Matching defs:grh
94 const struct ib_global_route *grh;
99 grh = rdma_ah_read_grh(&qp->alt_ah_attr);
100 guid = get_sguid(ibp, grh->sgid_index);
101 if (!gid_ok(&hdr->u.l.grh.dgid,
104 if (!gid_ok(&hdr->u.l.grh.sgid,
105 grh->dgid.global.subnet_prefix,
106 grh->dgid.global.interface_id))
133 const struct ib_global_route *grh;
138 grh = rdma_ah_read_grh(&qp->remote_ah_attr);
139 guid = get_sguid(ibp, grh->sgid_index);
140 if (!gid_ok(&hdr->u.l.grh.dgid,
143 if (!gid_ok(&hdr->u.l.grh.sgid,
144 grh->dgid.global.subnet_prefix,
145 grh->dgid.global.interface_id))
177 * @grh: the global route address to send to
184 const struct ib_global_route *grh, u32 hwords, u32 nwords)
188 (grh->traffic_class << IB_GRH_TCLASS_SHIFT) |
189 (grh->flow_label << IB_GRH_FLOW_SHIFT));
193 hdr->hop_limit = grh->hop_limit;
196 if (!grh->sgid_index)
198 else if (grh->sgid_index < QIB_GUIDS_PER_PORT)
199 hdr->sgid.global.interface_id = ibp->guids[grh->sgid_index - 1];
200 hdr->dgid = grh->dgid;
221 qib_make_grh(ibp, &priv->s_hdr->u.l.grh,