| /freebsd-9-stable/sys/ofed/drivers/infiniband/core/ |
| D | ud_header.c | 119 { STRUCT_FIELD(grh, ip_version), 123 { STRUCT_FIELD(grh, traffic_class), 127 { STRUCT_FIELD(grh, flow_label), 131 { STRUCT_FIELD(grh, payload_length), 135 { STRUCT_FIELD(grh, next_header), 139 { STRUCT_FIELD(grh, hop_limit), 143 { STRUCT_FIELD(grh, source_gid), 147 { STRUCT_FIELD(grh, destination_gid), 259 header->grh.ip_version = 6; in ib_ud_header_init() 260 header->grh.payload_length = in ib_ud_header_init() [all …]
|
| D | uverbs_marshall.c | 38 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid); in ib_copy_ah_attr_to_user() 39 dst->grh.flow_label = src->grh.flow_label; in ib_copy_ah_attr_to_user() 40 dst->grh.sgid_index = src->grh.sgid_index; in ib_copy_ah_attr_to_user() 41 dst->grh.hop_limit = src->grh.hop_limit; in ib_copy_ah_attr_to_user() 42 dst->grh.traffic_class = src->grh.traffic_class; in ib_copy_ah_attr_to_user()
|
| D | uverbs_cmd.c | 1247 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp() 1248 resp.dest.flow_label = attr->ah_attr.grh.flow_label; in ib_uverbs_query_qp() 1249 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index; in ib_uverbs_query_qp() 1250 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit; in ib_uverbs_query_qp() 1251 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class; in ib_uverbs_query_qp() 1259 memcpy(resp.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp() 1260 resp.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label; in ib_uverbs_query_qp() 1261 resp.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index; in ib_uverbs_query_qp() 1262 resp.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit; in ib_uverbs_query_qp() 1263 resp.alt_dest.traffic_class = attr->alt_ah_attr.grh.traffic_class; in ib_uverbs_query_qp() [all …]
|
| D | verbs.c | 160 struct ib_grh *grh, struct ib_ah_attr *ah_attr) in ib_init_ah_from_wc() argument 174 ah_attr->grh.dgid = grh->sgid; in ib_init_ah_from_wc() 176 ret = ib_find_cached_gid(device, &grh->dgid, &port_num, in ib_init_ah_from_wc() 181 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_wc() 182 flow_class = be32_to_cpu(grh->version_tclass_flow); in ib_init_ah_from_wc() 183 ah_attr->grh.flow_label = flow_class & 0xFFFFF; in ib_init_ah_from_wc() 184 ah_attr->grh.hop_limit = 0xFF; in ib_init_ah_from_wc() 185 ah_attr->grh.traffic_class = (flow_class >> 20) & 0xFF; in ib_init_ah_from_wc() 192 struct ib_grh *grh, u8 port_num) in ib_create_ah_from_wc() argument 197 ret = ib_init_ah_from_wc(pd->device, port_num, wc, grh, &ah_attr); in ib_create_ah_from_wc()
|
| D | user_mad.c | 243 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh, in recv_handler() 246 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index; in recv_handler() 247 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit; in recv_handler() 248 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class; in recv_handler() 249 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16); in recv_handler() 250 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label); in recv_handler() 497 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16); in ib_umad_write() 498 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index; in ib_umad_write() 499 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label); in ib_umad_write() 500 ah_attr.grh.hop_limit = packet->mad.hdr.hop_limit; in ib_umad_write() [all …]
|
| D | agent.c | 81 void agent_send_response(struct ib_mad *mad, struct ib_grh *grh, in agent_send_response() argument 102 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
|
| D | agent.h | 47 extern void agent_send_response(struct ib_mad *mad, struct ib_grh *grh,
|
| D | multicast.c | 708 ah_attr->grh.dgid = rec->mgid; in ib_init_ah_from_mcmember() 710 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_mcmember() 711 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_mcmember() 712 ah_attr->grh.hop_limit = rec->hop_limit; in ib_init_ah_from_mcmember() 713 ah_attr->grh.traffic_class = rec->traffic_class; in ib_init_ah_from_mcmember()
|
| D | mad.c | 1742 attr.grh.sgid_index, &sgid)) in rcv_has_same_gid() 1744 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw, in rcv_has_same_gid() 1752 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw, in rcv_has_same_gid() 1887 recv->header.recv_wc.recv_buf.grh = &recv->grh; in ib_mad_recv_done_handler() 1936 response->header.recv_wc.recv_buf.grh = &response->grh; in ib_mad_recv_done_handler() 1939 &response->grh, wc, in ib_mad_recv_done_handler() 1955 wc, &recv->grh, in ib_mad_recv_done_handler() 1963 &recv->grh, wc, in ib_mad_recv_done_handler() 2408 local->mad_priv->header.recv_wc.recv_buf.grh = NULL; in local_completions() 2571 &mad_priv->grh, in ib_mad_post_receive_mads()
|
| /freebsd-9-stable/sys/ofed/drivers/infiniband/hw/mlx4/ |
| D | ah.c | 52 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof in6); in mlx4_ib_resolve_grh() 73 ah->av.ib.gid_index = ah_attr->grh.sgid_index; in create_ib_ah() 74 ah->av.ib.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah() 76 cpu_to_be32((ah_attr->grh.traffic_class << 20) | in create_ib_ah() 77 ah_attr->grh.flow_label); in create_ib_ah() 78 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16); in create_ib_ah() 109 err = ib_get_cached_gid(pd->device, ah_attr->port_num, ah_attr->grh.sgid_index, &sgid); in create_iboe_ah() 116 ah->av.eth.gid_index = ah_attr->grh.sgid_index; in create_iboe_ah() 131 memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16); in create_iboe_ah() 186 ah_attr->grh.traffic_class = in mlx4_ib_query_ah() [all …]
|
| D | mad.c | 68 struct ib_grh grh; member 77 struct ib_grh grh; member 84 struct ib_grh grh; member 150 u8 grh[40]; in mlx4_MAD_IFC() member 164 memcpy(ext_info->grh, in_grh, 40); in mlx4_MAD_IFC() 455 struct ib_grh *grh, struct ib_mad *mad) in mlx4_ib_send_to_slave() argument 514 memcpy(&attr.grh.dgid.raw[0], &grh->dgid.raw[0], 16); in mlx4_ib_send_to_slave() 542 if (grh) in mlx4_ib_send_to_slave() 543 memcpy(&tun_mad->grh, grh, sizeof *grh); in mlx4_ib_send_to_slave() 551 tun_mad->hdr.g_ml_path = (grh && (wc->wc_flags & IB_WC_GRH)) ? 0x80 : 0; in mlx4_ib_send_to_slave() [all …]
|
| D | qp.c | 1590 if (ah->grh.sgid_index >= dev->dev->caps.gid_table_len[port]) { in mlx4_set_path() 1592 ah->grh.sgid_index, dev->dev->caps.gid_table_len[port] - 1); in mlx4_set_path() 1597 path->mgid_index = ah->grh.sgid_index; in mlx4_set_path() 1598 path->hop_limit = ah->grh.hop_limit; in mlx4_set_path() 1600 cpu_to_be32((ah->grh.traffic_class << 20) | in mlx4_set_path() 1601 (ah->grh.flow_label)); in mlx4_set_path() 1602 memcpy(path->rgid, ah->grh.dgid.raw, 16); in mlx4_set_path() 1617 vlan_tag = rdma_get_vlan_id(&dev->iboe.gid_table[port - 1][ah->grh.sgid_index]); in mlx4_set_path() 2513 sqp->ud_header.grh.traffic_class = in build_mlx_header() 2515 sqp->ud_header.grh.flow_label = in build_mlx_header() [all …]
|
| /freebsd-9-stable/contrib/ofed/libibverbs/src/ |
| D | marshall.c | 44 memcpy(dst->grh.dgid.raw, src->grh.dgid, sizeof dst->grh.dgid); in ibv_copy_ah_attr_from_kern() 45 dst->grh.flow_label = src->grh.flow_label; in ibv_copy_ah_attr_from_kern() 46 dst->grh.sgid_index = src->grh.sgid_index; in ibv_copy_ah_attr_from_kern() 47 dst->grh.hop_limit = src->grh.hop_limit; in ibv_copy_ah_attr_from_kern() 48 dst->grh.traffic_class = src->grh.traffic_class; in ibv_copy_ah_attr_from_kern()
|
| D | cmd.c | 727 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16); in ibv_cmd_query_qp() 728 attr->ah_attr.grh.flow_label = resp.dest.flow_label; in ibv_cmd_query_qp() 730 attr->ah_attr.grh.sgid_index = resp.dest.sgid_index; in ibv_cmd_query_qp() 731 attr->ah_attr.grh.hop_limit = resp.dest.hop_limit; in ibv_cmd_query_qp() 732 attr->ah_attr.grh.traffic_class = resp.dest.traffic_class; in ibv_cmd_query_qp() 739 memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16); in ibv_cmd_query_qp() 740 attr->alt_ah_attr.grh.flow_label = resp.alt_dest.flow_label; in ibv_cmd_query_qp() 742 attr->alt_ah_attr.grh.sgid_index = resp.alt_dest.sgid_index; in ibv_cmd_query_qp() 743 attr->alt_ah_attr.grh.hop_limit = resp.alt_dest.hop_limit; in ibv_cmd_query_qp() 744 attr->alt_ah_attr.grh.traffic_class = resp.alt_dest.traffic_class; in ibv_cmd_query_qp() [all …]
|
| D | verbs.c | 518 struct ibv_wc *wc, struct ibv_grh *grh, in ibv_init_ah_from_wc() argument 532 ah_attr->grh.dgid = grh->sgid; in ibv_init_ah_from_wc() 534 ret = ibv_find_gid_index(context, port_num, &grh->dgid); in ibv_init_ah_from_wc() 538 ah_attr->grh.sgid_index = (uint8_t) ret; in ibv_init_ah_from_wc() 539 flow_class = ntohl(grh->version_tclass_flow); in ibv_init_ah_from_wc() 540 ah_attr->grh.flow_label = flow_class & 0xFFFFF; in ibv_init_ah_from_wc() 541 ah_attr->grh.hop_limit = grh->hop_limit; in ibv_init_ah_from_wc() 542 ah_attr->grh.traffic_class = (flow_class >> 20) & 0xFF; in ibv_init_ah_from_wc() 548 struct ibv_grh *grh, uint8_t port_num) in ibv_create_ah_from_wc() argument 553 ret = ibv_init_ah_from_wc(pd->context, port_num, wc, grh, &ah_attr); in ibv_create_ah_from_wc()
|
| /freebsd-9-stable/sys/ofed/drivers/infiniband/hw/mthca/ |
| D | mthca_av.c | 210 ah_attr->grh.sgid_index; in mthca_create_ah() 211 av->hop_limit = ah_attr->grh.hop_limit; in mthca_create_ah() 213 cpu_to_be32((ah_attr->grh.traffic_class << 20) | in mthca_create_ah() 214 ah_attr->grh.flow_label); in mthca_create_ah() 215 memcpy(av->dgid, ah_attr->grh.dgid.raw, 16); in mthca_create_ah() 276 header->grh.traffic_class = in mthca_read_ah() 278 header->grh.flow_label = in mthca_read_ah() 280 header->grh.hop_limit = ah->av->hop_limit; in mthca_read_ah() 284 &header->grh.source_gid); in mthca_read_ah() 285 memcpy(header->grh.destination_gid.raw, in mthca_read_ah() [all …]
|
| D | mthca_qp.c | 416 ib_ah_attr->grh.sgid_index = path->mgid_index & (dev->limits.gid_table_len - 1); in to_ib_ah_attr() 417 ib_ah_attr->grh.hop_limit = path->hop_limit; in to_ib_ah_attr() 418 ib_ah_attr->grh.traffic_class = in to_ib_ah_attr() 420 ib_ah_attr->grh.flow_label = in to_ib_ah_attr() 422 memcpy(ib_ah_attr->grh.dgid.raw, in to_ib_ah_attr() 423 path->rgid, sizeof ib_ah_attr->grh.dgid.raw); in to_ib_ah_attr() 529 if (ah->grh.sgid_index >= dev->limits.gid_table_len) { in mthca_path_set() 531 ah->grh.sgid_index, dev->limits.gid_table_len-1); in mthca_path_set() 536 path->mgid_index = ah->grh.sgid_index; in mthca_path_set() 537 path->hop_limit = ah->grh.hop_limit; in mthca_path_set() [all …]
|
| /freebsd-9-stable/contrib/ofed/libibverbs/fixes/ |
| D | XRC_RCV_QP.patch | 396 + memcpy(cmd.dest.dgid, attr->ah_attr.grh.dgid.raw, 16); 397 + cmd.dest.flow_label = attr->ah_attr.grh.flow_label; 400 + cmd.dest.sgid_index = attr->ah_attr.grh.sgid_index; 401 + cmd.dest.hop_limit = attr->ah_attr.grh.hop_limit; 402 + cmd.dest.traffic_class = attr->ah_attr.grh.traffic_class; 409 + memcpy(cmd.alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16); 410 + cmd.alt_dest.flow_label = attr->alt_ah_attr.grh.flow_label; 413 + cmd.alt_dest.sgid_index = attr->alt_ah_attr.grh.sgid_index; 414 + cmd.alt_dest.hop_limit = attr->alt_ah_attr.grh.hop_limit; 415 + cmd.alt_dest.traffic_class = attr->alt_ah_attr.grh.traffic_class; [all …]
|
| D | rocee_examples.patch | 142 + attr.ah_attr.grh.hop_limit = 1; 143 + attr.ah_attr.grh.dgid = dest->gid; 144 + attr.ah_attr.grh.sgid_index = sgid_idx; 399 + attr.ah_attr.grh.hop_limit = 1; 400 + attr.ah_attr.grh.dgid = dest->gid; 401 + attr.ah_attr.grh.sgid_index = sgid_idx; 636 + attr.ah_attr.grh.hop_limit = 1; 637 + attr.ah_attr.grh.dgid = dest->gid; 638 + attr.ah_attr.grh.sgid_index = sgid_idx; 858 + ah_attr.grh.hop_limit = 1; [all …]
|
| /freebsd-9-stable/contrib/ofed/libmthca/src/ |
| D | ah.c | 147 attr->grh.sgid_index; in mthca_alloc_av() 148 ah->av->hop_limit = attr->grh.hop_limit; in mthca_alloc_av() 150 htonl((attr->grh.traffic_class << 20) | in mthca_alloc_av() 151 attr->grh.flow_label); in mthca_alloc_av() 152 memcpy(ah->av->dgid, attr->grh.dgid.raw, 16); in mthca_alloc_av()
|
| /freebsd-9-stable/sys/contrib/rdma/ |
| D | rdma_verbs.c | 146 struct ib_grh *grh, struct ib_ah_attr *ah_attr) in ib_init_ah_from_wc() argument 160 ah_attr->grh.dgid = grh->sgid; in ib_init_ah_from_wc() 162 ret = ib_find_cached_gid(device, &grh->dgid, &port_num, in ib_init_ah_from_wc() 167 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_wc() 168 flow_class = be32toh(grh->version_tclass_flow); in ib_init_ah_from_wc() 169 ah_attr->grh.flow_label = flow_class & 0xFFFFF; in ib_init_ah_from_wc() 170 ah_attr->grh.hop_limit = 0xFF; in ib_init_ah_from_wc() 171 ah_attr->grh.traffic_class = (flow_class >> 20) & 0xFF; in ib_init_ah_from_wc() 177 struct ib_grh *grh, u8 port_num) in ib_create_ah_from_wc() argument 182 ret = ib_init_ah_from_wc(pd->device, port_num, wc, grh, &ah_attr); in ib_create_ah_from_wc()
|
| /freebsd-9-stable/contrib/ofed/management/opensm/libvendor/ |
| D | osm_vendor_mlx_ibmgt.c | 730 ib_grh_set_ver_class_flow(p_rcv_desc->grh. in __osmv_IBMGT_rcv_desc_to_osm_addr() 732 p_rcv_desc->grh. in __osmv_IBMGT_rcv_desc_to_osm_addr() 734 p_rcv_desc->grh. in __osmv_IBMGT_rcv_desc_to_osm_addr() 737 p_rcv_desc->grh.hop_limit; in __osmv_IBMGT_rcv_desc_to_osm_addr() 739 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t)); in __osmv_IBMGT_rcv_desc_to_osm_addr() 741 p_rcv_desc->grh.dgid, sizeof(ib_net64_t)); in __osmv_IBMGT_rcv_desc_to_osm_addr()
|
| D | osm_vendor_mtl.c | 122 ib_grh_set_ver_class_flow(p_rcv_desc->grh. in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 124 p_rcv_desc->grh. in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 126 p_rcv_desc->grh. in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 129 p_rcv_desc->grh.hop_limit; in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 131 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t)); in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 133 p_rcv_desc->grh.dgid, sizeof(ib_net64_t)); in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr()
|
| /freebsd-9-stable/contrib/ofed/libmlx4/src/ |
| D | verbs.c | 703 ah->av.gid_index = attr->grh.sgid_index; in mlx4_create_ah() 704 ah->av.hop_limit = attr->grh.hop_limit; in mlx4_create_ah() 706 htonl((attr->grh.traffic_class << 20) | in mlx4_create_ah() 707 attr->grh.flow_label); in mlx4_create_ah() 708 memcpy(ah->av.dgid, attr->grh.dgid.raw, 16); in mlx4_create_ah() 717 attr->grh.sgid_index, in mlx4_create_ah()
|
| /freebsd-9-stable/contrib/ofed/libmlx4/fixes/ |
| D | rocee_add_support.patch | 90 memcpy(ah->av.dgid, attr->grh.dgid.raw, 16); 99 + attr->grh.sgid_index,
|