/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_ah.c | 36 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16); 37 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label | 39 ah_attr->grh.sgid_index << 20); 40 ah->av.hop_limit = ah_attr->grh.hop_limit; 41 ah->av.tclass = ah_attr->grh.traffic_class; 51 ah_attr->grh.sgid_index); 113 ah_attr->grh.sgid_index = (tmp >> 20) & 0xff; 114 ah_attr->grh.flow_label = tmp & 0xfffff; 115 memcpy(&ah_attr->grh.dgid, ah->av.rgid, 16); 116 ah_attr->grh [all...] |
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | agent.h | 49 extern void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh,
|
H A D | ib_uverbs_marshall.c | 43 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid); 44 dst->grh.flow_label = src->grh.flow_label; 45 dst->grh.sgid_index = src->grh.sgid_index; 46 dst->grh.hop_limit = src->grh.hop_limit; 47 dst->grh [all...] |
H A D | ib_ud_header.c | 192 { STRUCT_FIELD(grh, ip_version), 196 { STRUCT_FIELD(grh, traffic_class), 200 { STRUCT_FIELD(grh, flow_label), 204 { STRUCT_FIELD(grh, payload_length), 208 { STRUCT_FIELD(grh, next_header), 212 { STRUCT_FIELD(grh, hop_limit), 216 { STRUCT_FIELD(grh, source_gid), 220 { STRUCT_FIELD(grh, destination_gid), 365 header->grh.ip_version = 6; 366 header->grh [all...] |
H A D | ib_agent.c | 85 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, argument 106 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num);
|
H A D | ib_verbs.c | 394 const struct ib_grh *grh) 401 grh_version = ib_get_header_version((const union rdma_network_hdr *)grh); 406 if (grh->next_hdr == IPPROTO_UDP) 491 const struct ib_wc *wc, const struct ib_grh *grh, 508 net_type = ib_get_net_type_by_grh(device, port_num, grh); 511 ret = get_gids_from_rdma_hdr((const union rdma_network_hdr *)grh, net_type, 551 ah_attr->grh.dgid = sgid; 564 ah_attr->grh.sgid_index = (u8) gid_index; 565 flow_class = be32_to_cpu(grh->version_tclass_flow); 566 ah_attr->grh 392 ib_get_net_type_by_grh(struct ib_device *device, u8 port_num, const struct ib_grh *grh) argument 490 ib_init_ah_from_wc(struct ib_device *device, u8 port_num, const struct ib_wc *wc, const struct ib_grh *grh, struct ib_ah_attr *ah_attr) argument 574 ib_create_ah_from_wc(struct ib_pd *pd, const struct ib_wc *wc, const struct ib_grh *grh, u8 port_num) argument [all...] |
H A D | ib_user_mad.c | 246 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh, 251 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index; 252 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit; 253 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class; 254 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16); 255 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label); 505 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16); 506 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index; 507 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label); 508 ah_attr.grh [all...] |
H A D | mad_priv.h | 83 struct ib_grh grh; member in struct:ib_mad_private
|
H A D | ib_uverbs_cmd.c | 2290 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16); 2291 resp.dest.flow_label = attr->ah_attr.grh.flow_label; 2292 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index; 2293 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit; 2294 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class; 2302 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16); 2303 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label; 2304 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index; 2305 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit; 2306 resp.alt_dest.traffic_class = attr->alt_ah_attr.grh [all...] |
H A D | ib_sa_query.c | 534 ah_attr.grh.dgid.global.subnet_prefix = cpu_to_be64(port_attr.subnet_prefix); 535 ah_attr.grh.dgid.global.interface_id = cpu_to_be64(IB_SA_WELL_KNOWN_GUID); 720 ah_attr->grh.dgid = rec->dgid; 731 ah_attr->grh.sgid_index = gid_index; 732 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); 733 ah_attr->grh.hop_limit = rec->hop_limit; 734 ah_attr->grh.traffic_class = rec->traffic_class;
|
H A D | ib_multicast.c | 755 ah_attr->grh.dgid = rec->mgid; 757 ah_attr->grh.sgid_index = (u8) gid_index; 758 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); 759 ah_attr->grh.hop_limit = rec->hop_limit; 760 ah_attr->grh.traffic_class = rec->traffic_class;
|
H A D | ib_mad.c | 1893 attr.grh.sgid_index, &sgid, NULL)) 1895 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw, 1903 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw, 2061 response->header.recv_wc.recv_buf.grh = &response->grh; 2064 &response->grh, wc, 2088 response->header.recv_wc.recv_buf.grh = &response->grh; 2149 response->header.recv_wc.recv_buf.grh [all...] |
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_ah.c | 55 ah->av.ib.gid_index = ah_attr->grh.sgid_index; 56 ah->av.ib.hop_limit = ah_attr->grh.hop_limit; 58 cpu_to_be32((ah_attr->grh.traffic_class << 20) | 59 ah_attr->grh.flow_label); 60 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16); 86 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof(in6)); 94 ah_attr->grh.sgid_index, &sgid, &gid_attr); 106 ret = mlx4_ib_gid_index_to_real_index(ibdev, ah_attr->port_num, ah_attr->grh.sgid_index); 111 ah->av.eth.hop_limit = ah_attr->grh.hop_limit; 125 memcpy(ah->av.eth.dgid, ah_attr->grh [all...] |
H A D | mlx4_ib_mad.c | 69 struct ib_grh grh; member in struct:mlx4_mad_rcv_buf 78 struct ib_grh grh; member in struct:mlx4_tunnel_mad 85 struct ib_grh grh; member in struct:mlx4_rcv_tunnel_mad 152 u8 grh[40]; member in struct:__anon6818 166 memcpy(ext_info->grh, in_grh, 40); 484 struct ib_grh *grh, struct ib_mad *mad) 540 memcpy(&attr.grh.dgid.raw[0], &grh->dgid.raw[0], 16); 568 if (grh) 569 memcpy(&tun_mad->grh, gr 482 mlx4_ib_send_to_slave(struct mlx4_ib_dev *dev, int slave, u8 port, enum ib_qp_type dest_qpt, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument 639 mlx4_ib_demux_mad(struct ib_device *ibdev, u8 port, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad) argument 1863 struct ib_grh *grh; local [all...] |
H A D | mlx4_ib_qp.c | 1413 ah->grh.sgid_index); 1423 path->hop_limit = ah->grh.hop_limit; 1425 cpu_to_be32((ah->grh.traffic_class << 20) | 1426 (ah->grh.flow_label)); 1427 memcpy(path->rgid, ah->grh.dgid.raw, 16); 1777 int index = attr->ah_attr.grh.sgid_index; 2509 sqp->ud_header.grh.traffic_class = 2511 sqp->ud_header.grh.flow_label = 2513 sqp->ud_header.grh.hop_limit = ah->av.ib.hop_limit; 2515 memcpy(sqp->ud_header.grh [all...] |
/freebsd-11-stable/sys/dev/mthca/ |
H A D | mthca_av.c | 210 ah_attr->grh.sgid_index; 211 av->hop_limit = ah_attr->grh.hop_limit; 213 cpu_to_be32((ah_attr->grh.traffic_class << 20) | 214 ah_attr->grh.flow_label); 215 memcpy(av->dgid, ah_attr->grh.dgid.raw, 16); 276 header->grh.traffic_class = 278 header->grh.flow_label = 280 header->grh.hop_limit = ah->av->hop_limit; 284 &header->grh.source_gid, NULL); 285 memcpy(header->grh [all...] |
H A D | mthca_qp.c | 413 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1); 414 ib_ah_attr->grh.hop_limit = path->hop_limit; 415 ib_ah_attr->grh.traffic_class = 417 ib_ah_attr->grh.flow_label = 419 memcpy(ib_ah_attr->grh.dgid.raw, 420 path->rgid, sizeof ib_ah_attr->grh.dgid.raw); 523 if (ah->grh.sgid_index >= dev->limits.gid_table_len) { 525 ah->grh.sgid_index, dev->limits.gid_table_len-1); 530 path->mgid_index = ah->grh.sgid_index; 531 path->hop_limit = ah->grh [all...] |
/freebsd-11-stable/contrib/ofed/libibverbs/ |
H A D | marshall.c | 42 memcpy(dst->grh.dgid.raw, src->grh.dgid, sizeof dst->grh.dgid); 43 dst->grh.flow_label = src->grh.flow_label; 44 dst->grh.sgid_index = src->grh.sgid_index; 45 dst->grh.hop_limit = src->grh.hop_limit; 46 dst->grh [all...] |
H A D | verbs.c | 745 static inline int get_grh_header_version(struct ibv_grh *grh) argument 747 int ip6h_version = (be32toh(grh->version_tclass_flow) >> 28) & 0xf; 748 struct ip *ip4h = (struct ip *)((void *)grh + 20); 779 struct ibv_grh *grh, 784 flow_class = be32toh(grh->version_tclass_flow); 785 ah_attr->grh.flow_label = flow_class & 0xFFFFF; 812 (struct in6_addr *)&ah_attr->grh.dgid); 813 ah_attr->grh.sgid_index = (uint8_t) ret; 814 ah_attr->grh.hop_limit = ip4h->ip_ttl; 815 ah_attr->grh 777 set_ah_attr_generic_fields(struct ibv_ah_attr *ah_attr, struct ibv_wc *wc, struct ibv_grh *grh, uint8_t port_num) argument 821 set_ah_attr_by_ipv6(struct ibv_context *context, struct ibv_ah_attr *ah_attr, struct ibv_grh *grh, uint8_t port_num) argument 858 ibv_init_ah_from_wc(struct ibv_context *context, uint8_t port_num, struct ibv_wc *wc, struct ibv_grh *grh, struct ibv_ah_attr *ah_attr) argument 886 ibv_create_ah_from_wc(struct ibv_pd *pd, struct ibv_wc *wc, struct ibv_grh *grh, uint8_t port_num) argument [all...] |
H A D | cmd.c | 1195 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16); 1196 attr->ah_attr.grh.flow_label = resp.dest.flow_label; 1198 attr->ah_attr.grh.sgid_index = resp.dest.sgid_index; 1199 attr->ah_attr.grh.hop_limit = resp.dest.hop_limit; 1200 attr->ah_attr.grh.traffic_class = resp.dest.traffic_class; 1207 memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16); 1208 attr->alt_ah_attr.grh.flow_label = resp.alt_dest.flow_label; 1210 attr->alt_ah_attr.grh.sgid_index = resp.alt_dest.sgid_index; 1211 attr->alt_ah_attr.grh.hop_limit = resp.alt_dest.hop_limit; 1212 attr->alt_ah_attr.grh [all...] |
/freebsd-11-stable/contrib/ofed/opensm/libvendor/ |
H A D | osm_vendor_mlx_ibmgt.c | 701 /* Clear the grh any way to avoid unset fields */ 730 ib_grh_set_ver_class_flow(p_rcv_desc->grh. 732 p_rcv_desc->grh. 734 p_rcv_desc->grh. 737 p_rcv_desc->grh.hop_limit; 739 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t)); 741 p_rcv_desc->grh.dgid, sizeof(ib_net64_t));
|
H A D | osm_vendor_mtl.c | 121 ib_grh_set_ver_class_flow(p_rcv_desc->grh. 123 p_rcv_desc->grh. 125 p_rcv_desc->grh. 128 p_rcv_desc->grh.hop_limit; 130 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t)); 132 p_rcv_desc->grh.dgid, sizeof(ib_net64_t));
|
/freebsd-11-stable/contrib/ofed/libmlx4/ |
H A D | verbs.c | 1154 if (link_local_gid(&attr->grh.dgid)) { 1155 memcpy(ah->mac, &attr->grh.dgid.raw[8], 3); 1156 memcpy(ah->mac + 3, &attr->grh.dgid.raw[13], 3); 1159 vid = get_vlan_id(&attr->grh.dgid); 1160 } else if (is_multicast_gid(&attr->grh.dgid)) { 1164 ah->mac[i] = attr->grh.dgid.raw[i + 10]; 1167 attr->grh.sgid_index, &sgid); 1215 ah->av.gid_index = attr->grh.sgid_index; 1216 ah->av.hop_limit = attr->grh.hop_limit; 1218 htobe32((attr->grh [all...] |
/freebsd-11-stable/sys/ofed/include/rdma/ |
H A D | ib_hdrs.h | 122 struct ib_grh grh; member in struct:ib_header::__anon8282::__anon8283
|
/freebsd-11-stable/contrib/ofed/libibverbs/examples/ |
H A D | ud_pingpong.c | 111 ah_attr.grh.hop_limit = 1; 112 ah_attr.grh.dgid = dest->gid; 113 ah_attr.grh.sgid_index = sgid_idx;
|