Lines Matching refs:grh
79 struct ocrdma_grh grh; in set_av_attr() local
91 memset(&grh, 0, sizeof(grh)); in set_av_attr()
123 ah->sgid_index = attr->grh.sgid_index; in set_av_attr()
128 attr->grh.traffic_class); in set_av_attr()
132 ipv4.ttl = attr->grh.hop_limit; in set_av_attr()
136 rdma_gid2ip(&dgid_addr._sockaddr, &attr->grh.dgid); in set_av_attr()
140 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); in set_av_attr()
141 grh.tclass_flow = cpu_to_be32((6 << 28) | in set_av_attr()
142 (attr->grh.traffic_class << 24) | in set_av_attr()
143 attr->grh.flow_label); in set_av_attr()
144 memcpy(&grh.dgid[0], attr->grh.dgid.raw, in set_av_attr()
145 sizeof(attr->grh.dgid.raw)); in set_av_attr()
146 grh.pdid_hoplimit = cpu_to_be32((pdid << 16) | in set_av_attr()
148 attr->grh.hop_limit); in set_av_attr()
149 memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh)); in set_av_attr()
183 status = ib_get_cached_gid(&dev->ibdev, 1, attr->grh.sgid_index, &sgid, in ocrdma_create_ah()
199 (!rdma_is_multicast_addr((struct in6_addr *)attr->grh.dgid.raw)) && in ocrdma_create_ah()
200 (!rdma_link_local_addr((struct in6_addr *)attr->grh.dgid.raw))) { in ocrdma_create_ah()
201 status = rdma_addr_find_l2_eth_by_grh(&sgid, &attr->grh.dgid, in ocrdma_create_ah()
254 struct ocrdma_grh *grh; in ocrdma_query_ah() local
257 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
261 grh = (struct ocrdma_grh *)((u8 *)ah->av + in ocrdma_query_ah()
265 memcpy(&attr->grh.dgid.raw[0], &grh->dgid[0], sizeof(grh->dgid)); in ocrdma_query_ah()
266 attr->grh.sgid_index = ah->sgid_index; in ocrdma_query_ah()
267 attr->grh.hop_limit = be32_to_cpu(grh->pdid_hoplimit) & 0xff; in ocrdma_query_ah()
268 attr->grh.traffic_class = be32_to_cpu(grh->tclass_flow) >> 24; in ocrdma_query_ah()
269 attr->grh.flow_label = be32_to_cpu(grh->tclass_flow) & 0x00ffffffff; in ocrdma_query_ah()