/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_av.c | 19 const struct ib_global_route *grh = rdma_ah_read_grh(attr); local 37 if (grh->sgid_index > port->attr.gid_tbl_len) { 40 grh->sgid_index); 43 grh->sgid_index); 47 type = rdma_gid_attr_network_type(grh->sgid_attr); 76 const struct ib_global_route *grh = rdma_ah_read_grh(attr); local 79 memcpy(av->grh.dgid.raw, grh->dgid.raw, sizeof(grh->dgid.raw)); 80 av->grh 89 struct ib_global_route *grh = rdma_ah_retrieve_grh(attr); local [all...] |
H A D | rxe_net.c | 299 av->grh.traffic_class, av->grh.hop_limit, df, xnet); 323 av->grh.traffic_class, 324 av->grh.hop_limit); 468 attr = rdma_get_gid_attr(&rxe->ib_dev, port_num, av->grh.sgid_index);
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_ruc.c | 94 const struct ib_global_route *grh; local 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; local 138 grh = rdma_ah_read_grh(&qp->remote_ah_attr); 139 guid = get_sguid(ibp, grh 183 qib_make_grh(struct qib_ibport *ibp, struct ib_grh *hdr, const struct ib_global_route *grh, u32 hwords, u32 nwords) argument [all...] |
H A D | qib_ud.c | 162 struct ib_grh grh; local 165 qib_make_grh(ibp, &grh, grd, 0, 0); 166 rvt_copy_sge(qp, &qp->r_sge, &grh, 167 sizeof(grh), true, false); 325 qp->s_hdrwords += qib_make_grh(ibp, &priv->s_hdr->u.l.grh, 550 rvt_copy_sge(qp, &qp->r_sge, &hdr->u.l.grh,
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | ah.c | 38 enum ib_gid_type gid_type = ah_attr->grh.sgid_attr->gid_type; 43 (ah_attr->grh.flow_label & IB_GRH_FLOWLABEL_MASK)) 45 rdma_flow_label_to_udp_sport(ah_attr->grh.flow_label)); 48 ah_attr->grh.sgid_attr); 60 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); local 62 memcpy(ah->av.rgid, &grh->dgid, 16); 63 ah->av.grh_gid_fl = cpu_to_be32(grh->flow_label | 65 grh->sgid_index << 20); 66 ah->av.hop_limit = grh->hop_limit; 67 ah->av.tclass = grh [all...] |
/linux-master/drivers/infiniband/core/ |
H A D | lag.c | 23 is_ipv4 = ipv6_addr_v4mapped((struct in6_addr *)ah_attr->grh.dgid.raw); 37 htons(rdma_flow_label_to_udp_sport(ah_attr->grh.flow_label)); 51 memcpy(&iph->saddr, ah_attr->grh.sgid_attr->gid.raw + 12, 53 memcpy(&iph->daddr, ah_attr->grh.dgid.raw + 12, 61 memcpy(&ip6h->flow_lbl, &ah_attr->grh.flow_label, 63 memcpy(&ip6h->saddr, ah_attr->grh.sgid_attr->gid.raw, 65 memcpy(&ip6h->daddr, ah_attr->grh.dgid.raw, 73 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac); 116 ah_attr->grh.sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && 117 ah_attr->grh [all...] |
H A D | agent.h | 47 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
|
H A D | uverbs_marshall.c | 69 memset(&dst->grh, 0, sizeof(dst->grh)); 83 const struct ib_global_route *grh = rdma_ah_read_grh(src); local 85 memcpy(dst->grh.dgid, grh->dgid.raw, sizeof(grh->dgid)); 86 dst->grh.flow_label = grh->flow_label; 87 dst->grh.sgid_index = grh [all...] |
H A D | ud_header.c | 187 { STRUCT_FIELD(grh, ip_version), 191 { STRUCT_FIELD(grh, traffic_class), 195 { STRUCT_FIELD(grh, flow_label), 199 { STRUCT_FIELD(grh, payload_length), 203 { STRUCT_FIELD(grh, next_header), 207 { STRUCT_FIELD(grh, hop_limit), 211 { STRUCT_FIELD(grh, source_gid), 215 { STRUCT_FIELD(grh, destination_gid), 356 header->grh.ip_version = 6; 357 header->grh [all...] |
H A D | verbs.c | 366 if (dest->grh.sgid_attr) 367 rdma_hold_gid_attr(dest->grh.sgid_attr); 386 if (old->grh.sgid_attr) 387 rdma_hold_gid_attr(old->grh.sgid_attr); 406 src->grh.sgid_attr = NULL; 425 if (ah_attr->grh.sgid_attr) { 430 if (ah_attr->grh.sgid_attr->index != ah_attr->grh.sgid_index || 431 ah_attr->grh.sgid_attr->port_num != ah_attr->port_num) 446 struct ib_global_route *grh; local 659 ib_get_net_type_by_grh(struct ib_device *device, u32 port_num, const struct ib_grh *grh) argument 755 struct ib_global_route *grh = rdma_ah_retrieve_grh(ah_attr); local 790 ib_init_ah_attr_from_wc(struct ib_device *device, u32 port_num, const struct ib_wc *wc, const struct ib_grh *grh, struct rdma_ah_attr *ah_attr) argument 920 ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc, const struct ib_grh *grh, u32 port_num) argument [all...] |
H A D | agent.c | 81 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, argument 102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
|
H A D | mad_priv.h | 81 struct ib_grh grh; member in struct:ib_mad_private
|
/linux-master/drivers/infiniband/hw/mlx4/ |
H A D | ah.c | 54 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); local 57 ah->av.ib.gid_index = grh->sgid_index; 58 ah->av.ib.hop_limit = grh->hop_limit; 60 cpu_to_be32((grh->traffic_class << 20) | 61 grh->flow_label); 62 memcpy(ah->av.ib.dgid, grh->dgid.raw, 16); 86 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); local 89 memcpy(&in6, grh->dgid.raw, sizeof(in6)); 100 gid_attr = ah_attr->grh.sgid_attr; 113 ah->av.eth.gid_index = ah_attr->grh [all...] |
H A D | mad.c | 71 struct ib_grh grh; member in struct:mlx4_mad_rcv_buf 80 struct ib_grh grh; member in struct:mlx4_tunnel_mad 87 struct ib_grh grh; member in struct:mlx4_rcv_tunnel_mad 154 u8 grh[40]; member in struct:__anon33 168 memcpy(ext_info->grh, in_grh, 40); 487 static int get_gids_from_l3_hdr(struct ib_grh *grh, union ib_gid *sgid, argument 490 int version = ib_get_rdma_header_version((const union rdma_network_hdr *)grh); 500 return ib_get_gids_from_rdma_hdr((union rdma_network_hdr *)grh, net_type, 513 struct ib_grh *grh, struct ib_mad *mad) 584 if (get_gids_from_l3_hdr(grh, 511 mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u32 port, enum ib_qp_type dest_qpt, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument 682 mlx4_ib_demux_mad(struct ib_device *ibdev, u32 port, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument 1470 struct ib_global_route *grh = rdma_ah_retrieve_grh(ah_attr); local 1903 struct ib_grh *grh; local [all...] |
/linux-master/drivers/infiniband/hw/ocrdma/ |
H A D | ocrdma_ah.c | 79 struct ocrdma_grh grh; local 91 memset(&grh, 0, sizeof(grh)); 141 memcpy(&grh.sgid[0], sgid->raw, sizeof(union ib_gid)); 142 grh.tclass_flow = cpu_to_be32((6 << 28) | 145 memcpy(&grh.dgid[0], ib_grh->dgid.raw, 147 grh.pdid_hoplimit = cpu_to_be32((pdid << 16) | 150 memcpy((u8 *)ah->av + eth_sz, &grh, sizeof(struct ocrdma_grh)); 178 sgid_attr = attr->grh.sgid_attr; 231 struct ocrdma_grh *grh; local [all...] |
/linux-master/drivers/infiniband/hw/hns/ |
H A D | hns_roce_ah.c | 42 u32 fl = ah_attr->grh.flow_label; 58 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); local 69 ah->av.gid_index = grh->sgid_index; 74 ah->av.hop_limit = grh->hop_limit; 75 ah->av.flowlabel = grh->flow_label; 77 ah->av.tclass = get_tclass(grh); 88 memcpy(ah->av.dgid, grh->dgid.raw, HNS_ROCE_GID_SIZE); 93 ret = rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr,
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | ruc.c | 40 if (!packet->grh) { 46 const struct ib_global_route *grh; local 51 grh = rdma_ah_read_grh(&qp->alt_ah_attr); 52 guid = get_sguid(ibp, grh->sgid_index); 53 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, 57 &packet->grh->sgid, 58 grh->dgid.global.subnet_prefix, 59 grh->dgid.global.interface_id)) 77 if (!packet->grh) { 83 const struct ib_global_route *grh; local 126 hfi1_make_grh(struct hfi1_ibport *ibp, struct ib_grh *hdr, const struct ib_global_route *grh, u32 hwords, u32 nwords) argument 252 struct ib_grh *grh; local 335 struct ib_grh *grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; local [all...] |
H A D | ud.c | 144 struct ib_grh grh; local 171 hfi1_make_grh(ibp, &grh, &grd, 0, 0); 172 rvt_copy_sge(qp, &qp->r_sge, &grh, 173 sizeof(grh), true, false); 273 struct ib_grh *grh; local 287 grh = &ps->s_txreq->phdr.hdr.ibh.u.l.grh; 289 hfi1_make_grh(ibp, grh, rdma_ah_read_grh(ah_attr), 373 struct ib_grh *grh; local 384 grh 611 struct ib_grh *grh = &hdr.opah.u.l.grh; local 669 struct ib_grh *grh = &hdr.ibh.u.l.grh; local 966 struct ib_grh grh; local [all...] |
H A D | driver.c | 235 packet->grh = &rhdr->u.l.grh; 252 if (packet->grh) { 254 struct ib_grh *grh = packet->grh; local 256 if (grh->next_hdr != IB_GRH_NEXT_HDR) 258 vtf = be32_to_cpu(grh->version_tclass_flow); 407 struct ib_grh *grh = pkt->grh; local 481 dlid, rlid, sc, grh); [all...] |
H A D | hfi.h | 341 struct ib_grh *grh; member in struct:hfi1_packet 2511 const struct ib_global_route *grh = rdma_ah_read_grh(attr); local 2522 if (ib_is_opa_gid(&grh->dgid)) 2523 dlid = opa_get_lid_from_gid(&grh->dgid); 2572 struct ib_grh *grh, u32 slid, 2581 grh->hop_limit = 1; 2582 grh->sgid.global.subnet_prefix = ibp->rvp.gid_prefix; 2584 grh->sgid.global.interface_id = 2587 grh->sgid.global.interface_id = OPA_MAKE_ID(slid); 2596 grh 2571 hfi1_make_ext_grh(struct hfi1_packet *packet, struct ib_grh *grh, u32 slid, u32 dlid) argument [all...] |
/linux-master/drivers/infiniband/hw/mthca/ |
H A D | mthca_av.c | 208 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); local 213 grh->sgid_index; 214 av->hop_limit = grh->hop_limit; 216 cpu_to_be32((grh->traffic_class << 20) | 217 grh->flow_label); 218 memcpy(av->dgid, grh->dgid.raw, 16); 279 header->grh.traffic_class = 281 header->grh.flow_label = 283 header->grh.hop_limit = ah->av->hop_limit; 284 header->grh [all...] |
/linux-master/drivers/infiniband/hw/qedr/ |
H A D | qedr_roce_cm.c | 387 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); local 388 const struct ib_gid_attr *sgid_attr = grh->sgid_attr; 458 udh->grh.traffic_class = grh->traffic_class; 459 udh->grh.flow_label = grh->flow_label; 460 udh->grh.hop_limit = grh->hop_limit; 461 udh->grh.destination_gid = grh [all...] |
H A D | qedr.h | 535 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); local 538 if (!memcmp(&grh->dgid, &zero_sgid, sizeof(union ib_gid))) { 544 memcpy(&in6, grh->dgid.raw, sizeof(in6));
|
/linux-master/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_verbs.c | 518 const struct ib_global_route *grh; local 524 grh = rdma_ah_read_grh(ah_attr); 526 rdma_is_multicast_addr((struct in6_addr *)grh->dgid.raw)) 535 ah->av.gid_index = grh->sgid_index; 536 ah->av.hop_limit = grh->hop_limit; 537 ah->av.sl_tclass_flowlabel = (grh->traffic_class << 20) | 538 grh->flow_label; 539 memcpy(ah->av.dgid, grh->dgid.raw, 16);
|
/linux-master/include/uapi/rdma/ |
H A D | rdma_user_rxe.h | 68 struct rxe_global_route grh; member in struct:rxe_av
|