| /freebsd-14.2/sys/dev/mlx5/mlx5_ib/ |
| H A D | mlx5_ib_ah.c | 37 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16); in create_ib_ah() 38 ah->av.grh_gid_fl = cpu_to_be32(ah_attr->grh.flow_label | in create_ib_ah() 40 ah_attr->grh.sgid_index << 20); in create_ib_ah() 41 ah->av.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah() 42 ah->av.tclass = ah_attr->grh.traffic_class; in create_ib_ah() 52 ah_attr->grh.sgid_index); in create_ib_ah() 109 ah_attr->grh.sgid_index = (tmp >> 20) & 0xff; in mlx5_ib_query_ah() 110 ah_attr->grh.flow_label = tmp & 0xfffff; in mlx5_ib_query_ah() 111 memcpy(&ah_attr->grh.dgid, ah->av.rgid, 16); in mlx5_ib_query_ah() 112 ah_attr->grh.hop_limit = ah->av.hop_limit; in mlx5_ib_query_ah() [all …]
|
| /freebsd-14.2/sys/dev/mlx4/mlx4_ib/ |
| H A D | mlx4_ib_ah.c | 56 ah->av.ib.gid_index = ah_attr->grh.sgid_index; in create_ib_ah() 57 ah->av.ib.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah() 60 ah_attr->grh.flow_label); in create_ib_ah() 87 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof(in6)); in create_iboe_ah() 95 ah_attr->grh.sgid_index, &sgid, &gid_attr); in create_iboe_ah() 112 ah->av.eth.hop_limit = ah_attr->grh.hop_limit; in create_iboe_ah() 160 slave_attr.grh.sgid_index = slave_sgid_index; in mlx4_ib_create_ah_slave() 199 ah_attr->grh.traffic_class = in mlx4_ib_query_ah() 201 ah_attr->grh.flow_label = in mlx4_ib_query_ah() 203 ah_attr->grh.hop_limit = ah->av.ib.hop_limit; in mlx4_ib_query_ah() [all …]
|
| H A D | mlx4_ib_mad.c | 69 struct ib_grh grh; member 78 struct ib_grh grh; member 85 struct ib_grh grh; member 152 u8 grh[40]; in mlx4_MAD_IFC() member 166 memcpy(ext_info->grh, in_grh, 40); in mlx4_MAD_IFC() 540 memcpy(&attr.grh.dgid.raw[0], &grh->dgid.raw[0], 16); in mlx4_ib_send_to_slave() 568 if (grh) in mlx4_ib_send_to_slave() 569 memcpy(&tun_mad->grh, grh, sizeof *grh); in mlx4_ib_send_to_slave() 1368 attr->grh.sgid_index, in mlx4_ib_send_to_wire() 1438 ah_attr->grh.sgid_index = slave; in fill_in_real_sgid_index() [all …]
|
| /freebsd-14.2/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_uverbs_marshall.c | 41 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid); in ib_copy_ah_attr_to_user() 42 dst->grh.flow_label = src->grh.flow_label; in ib_copy_ah_attr_to_user() 43 dst->grh.sgid_index = src->grh.sgid_index; in ib_copy_ah_attr_to_user() 44 dst->grh.hop_limit = src->grh.hop_limit; in ib_copy_ah_attr_to_user() 45 dst->grh.traffic_class = src->grh.traffic_class; in ib_copy_ah_attr_to_user() 46 memset(&dst->grh.reserved, 0, sizeof(dst->grh.reserved)); in ib_copy_ah_attr_to_user()
|
| H A D | ib_ud_header.c | 190 { STRUCT_FIELD(grh, ip_version), 194 { STRUCT_FIELD(grh, traffic_class), 198 { STRUCT_FIELD(grh, flow_label), 206 { STRUCT_FIELD(grh, next_header), 210 { STRUCT_FIELD(grh, hop_limit), 214 { STRUCT_FIELD(grh, source_gid), 363 header->grh.ip_version = 6; in ib_ud_header_init() 364 header->grh.payload_length = in ib_ud_header_init() 502 buf, &header->grh); in ib_ud_header_unpack() 507 header->grh.ip_version); in ib_ud_header_unpack() [all …]
|
| H A D | ib_verbs.c | 476 const struct ib_grh *grh) in ib_get_net_type_by_grh() argument 488 if (grh->next_hdr == IPPROTO_UDP) in ib_get_net_type_by_grh() 633 ah_attr->grh.dgid = sgid; in ib_init_ah_from_wc() 646 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_wc() 648 ah_attr->grh.flow_label = flow_class & 0xFFFFF; in ib_init_ah_from_wc() 649 ah_attr->grh.hop_limit = hoplimit; in ib_init_ah_from_wc() 657 const struct ib_grh *grh, u8 port_num) in ib_create_ah_from_wc() argument 1292 memcpy(&addr, ah_attr->grh.dgid.raw + 12, 4); in ib_resolve_eth_dmac() 1303 ah_attr->grh.sgid_index, in ib_resolve_eth_dmac() 1311 &ah_attr->grh.dgid, in ib_resolve_eth_dmac() [all …]
|
| H A D | ib_user_mad.c | 244 mad_recv_wc->wc, mad_recv_wc->recv_buf.grh, in recv_handler() 249 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index; in recv_handler() 250 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit; in recv_handler() 251 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class; in recv_handler() 252 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16); in recv_handler() 253 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label); in recv_handler() 503 memcpy(ah_attr.grh.dgid.raw, packet->mad.hdr.gid, 16); in ib_umad_write() 504 ah_attr.grh.sgid_index = packet->mad.hdr.gid_index; in ib_umad_write() 505 ah_attr.grh.flow_label = be32_to_cpu(packet->mad.hdr.flow_label); in ib_umad_write() 506 ah_attr.grh.hop_limit = packet->mad.hdr.hop_limit; in ib_umad_write() [all …]
|
| H A D | ib_agent.c | 83 void agent_send_response(const struct ib_mad_hdr *mad_hdr, const struct ib_grh *grh, in agent_send_response() argument 104 ah = ib_create_ah_from_wc(agent->qp->pd, wc, grh, port_num); in agent_send_response()
|
| 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_cmd.c | 1635 const struct ib_global_route *grh = &rdma_attr->grh; in copy_ah_attr_to_uverbs() local 1742 struct ib_global_route *grh = &rdma_attr->grh; in copy_ah_attr_from_uverbs() local 1744 grh->flow_label = uverb_attr->flow_label; in copy_ah_attr_from_uverbs() 1746 grh->hop_limit = uverb_attr->hop_limit; in copy_ah_attr_from_uverbs() 1748 memcpy(grh->dgid.raw, uverb_attr->dgid, sizeof(grh->dgid)); in copy_ah_attr_from_uverbs() 2432 struct ib_global_route *grh = &attr.grh; in ib_uverbs_create_ah() local 2434 grh->flow_label = cmd.attr.grh.flow_label; in ib_uverbs_create_ah() 2435 grh->sgid_index = cmd.attr.grh.sgid_index; in ib_uverbs_create_ah() 2436 grh->hop_limit = cmd.attr.grh.hop_limit; in ib_uverbs_create_ah() 2437 grh->traffic_class = cmd.attr.grh.traffic_class; in ib_uverbs_create_ah() [all …]
|
| H A D | ib_mad.c | 1880 attr.grh.sgid_index, &sgid, NULL)) in rcv_has_same_gid() 1890 return !memcmp(attr.grh.dgid.raw, rwc->recv_buf.grh->sgid.raw, in rcv_has_same_gid() 2048 response->header.recv_wc.recv_buf.grh = &response->grh; in handle_ib_smi() 2051 &response->grh, wc, in handle_ib_smi() 2075 response->header.recv_wc.recv_buf.grh = &response->grh; in generate_unmatched_resp() 2136 response->header.recv_wc.recv_buf.grh = &response->grh; in handle_opa_smi() 2139 &response->grh, wc, in handle_opa_smi() 2224 recv->header.recv_wc.recv_buf.grh = &recv->grh; in ib_mad_recv_done() 2255 wc, &recv->grh, in ib_mad_recv_done() 2269 &recv->grh, wc, in ib_mad_recv_done() [all …]
|
| H A D | ib_multicast.c | 753 ah_attr->grh.dgid = rec->mgid; in ib_init_ah_from_mcmember() 755 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_mcmember() 756 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_mcmember() 757 ah_attr->grh.hop_limit = rec->hop_limit; in ib_init_ah_from_mcmember() 758 ah_attr->grh.traffic_class = rec->traffic_class; in ib_init_ah_from_mcmember()
|
| H A D | ib_sa_query.c | 532 ah_attr.grh.dgid.global.subnet_prefix = cpu_to_be64(port_attr.subnet_prefix); in update_sm_ah() 533 ah_attr.grh.dgid.global.interface_id = cpu_to_be64(IB_SA_WELL_KNOWN_GUID); in update_sm_ah() 716 ah_attr->grh.dgid = rec->dgid; in ib_init_ah_from_path() 727 ah_attr->grh.sgid_index = gid_index; in ib_init_ah_from_path() 728 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_path() 729 ah_attr->grh.hop_limit = rec->hop_limit; in ib_init_ah_from_path() 730 ah_attr->grh.traffic_class = rec->traffic_class; in ib_init_ah_from_path()
|
| /freebsd-14.2/contrib/ofed/libibverbs/ |
| H A D | marshall.c | 42 memcpy(dst->grh.dgid.raw, src->grh.dgid, sizeof dst->grh.dgid); in ibv_copy_ah_attr_from_kern() 43 dst->grh.flow_label = src->grh.flow_label; in ibv_copy_ah_attr_from_kern() 44 dst->grh.sgid_index = src->grh.sgid_index; in ibv_copy_ah_attr_from_kern() 45 dst->grh.hop_limit = src->grh.hop_limit; in ibv_copy_ah_attr_from_kern() 46 dst->grh.traffic_class = src->grh.traffic_class; in ibv_copy_ah_attr_from_kern()
|
| H A D | verbs.c | 779 struct ibv_grh *grh, in set_ah_attr_generic_fields() argument 813 ah_attr->grh.sgid_index = (uint8_t) ret; in set_ah_attr_by_ipv4() 814 ah_attr->grh.hop_limit = ip4h->ip_ttl; in set_ah_attr_by_ipv4() 830 if (grh->dgid.raw[0] == 0xFF) { in set_ah_attr_by_ipv6() 835 ah_attr->grh.dgid = grh->sgid; in set_ah_attr_by_ipv6() 836 if (grh->next_hdr == IPPROTO_UDP) { in set_ah_attr_by_ipv6() 850 ah_attr->grh.sgid_index = (uint8_t) ret; in set_ah_attr_by_ipv6() 852 ah_attr->grh.hop_limit = grh->hop_limit; in set_ah_attr_by_ipv6() 870 version = get_grh_header_version(grh); in ibv_init_ah_from_wc() 874 (struct ip *)((void *)grh + 20), in ibv_init_ah_from_wc() [all …]
|
| H A D | cmd.c | 1195 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16); in ibv_cmd_query_qp() 1257 memcpy(cmd->dest.dgid, attr->ah_attr.grh.dgid.raw, 16); in copy_modify_qp_fields() 1258 cmd->dest.flow_label = attr->ah_attr.grh.flow_label; in copy_modify_qp_fields() 1261 cmd->dest.sgid_index = attr->ah_attr.grh.sgid_index; in copy_modify_qp_fields() 1262 cmd->dest.hop_limit = attr->ah_attr.grh.hop_limit; in copy_modify_qp_fields() 1296 attr->alt_ah_attr.grh.traffic_class; in copy_modify_qp_fields() 1598 cmd.attr.grh.flow_label = attr->grh.flow_label; in ibv_cmd_create_ah() 1599 cmd.attr.grh.sgid_index = attr->grh.sgid_index; in ibv_cmd_create_ah() 1600 cmd.attr.grh.hop_limit = attr->grh.hop_limit; in ibv_cmd_create_ah() 1601 cmd.attr.grh.traffic_class = attr->grh.traffic_class; in ibv_cmd_create_ah() [all …]
|
| /freebsd-14.2/sys/dev/mthca/ |
| H A 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() 214 ah_attr->grh.flow_label); in mthca_create_ah() 276 header->grh.traffic_class = in mthca_read_ah() 278 header->grh.flow_label = in mthca_read_ah() 284 &header->grh.source_gid, NULL); in mthca_read_ah() 285 memcpy(header->grh.destination_gid.raw, in mthca_read_ah() 311 attr->grh.traffic_class = in mthca_ah_query() 313 attr->grh.flow_label = in mthca_ah_query() 315 attr->grh.hop_limit = ah->av->hop_limit; in mthca_ah_query() [all …]
|
| H A D | mthca_qp.c | 415 ib_ah_attr->grh.hop_limit = path->hop_limit; in to_ib_ah_attr() 416 ib_ah_attr->grh.traffic_class = in to_ib_ah_attr() 418 ib_ah_attr->grh.flow_label = in to_ib_ah_attr() 420 memcpy(ib_ah_attr->grh.dgid.raw, in to_ib_ah_attr() 421 path->rgid, sizeof ib_ah_attr->grh.dgid.raw); in to_ib_ah_attr() 526 ah->grh.sgid_index, dev->limits.gid_table_len-1); in mthca_path_set() 531 path->mgid_index = ah->grh.sgid_index; in mthca_path_set() 532 path->hop_limit = ah->grh.hop_limit; in mthca_path_set() 535 (ah->grh.traffic_class << 20) | in mthca_path_set() 536 (ah->grh.flow_label)); in mthca_path_set() [all …]
|
| /freebsd-14.2/sys/dev/qlnx/qlnxr/ |
| H A D | qlnxr_cm.c | 466 union ib_gid *dgid = &ah_attr->grh.dgid; in qlnxr_get_vlan_id_gsi() 489 struct ib_global_route *grh = &ah_attr->grh; in qlnxr_gsi_build_header() local 508 if (grh->sgid_index < QLNXR_MAX_SGID) in qlnxr_gsi_build_header() 509 sgid = dev->sgid_tbl[grh->sgid_index]; in qlnxr_gsi_build_header() 549 udh->grh.traffic_class = grh->traffic_class; in qlnxr_gsi_build_header() 550 udh->grh.flow_label = grh->flow_label; in qlnxr_gsi_build_header() 551 udh->grh.hop_limit = grh->hop_limit; in qlnxr_gsi_build_header() 552 udh->grh.destination_gid = grh->dgid; in qlnxr_gsi_build_header() 554 sizeof(udh->grh.source_gid.raw)); in qlnxr_gsi_build_header() 557 udh->grh.flow_label, udh->grh.hop_limit); in qlnxr_gsi_build_header() [all …]
|
| H A D | qlnxr_def.h | 835 u8 *guid = &ah_attr->grh.dgid.raw[8]; /* GID's 64 MSBs are the GUID */ in qlnxr_get_dmac() 840 if (!memcmp(&ah_attr->grh.dgid, &zero_sgid, sizeof(union ib_gid))) { in qlnxr_get_dmac() 845 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof(in6)); in qlnxr_get_dmac()
|
| /freebsd-14.2/contrib/ofed/libmlx4/ |
| H A D | verbs.c | 1154 if (link_local_gid(&attr->grh.dgid)) { in mlx4_resolve_grh_to_l2() 1155 memcpy(ah->mac, &attr->grh.dgid.raw[8], 3); in mlx4_resolve_grh_to_l2() 1159 vid = get_vlan_id(&attr->grh.dgid); in mlx4_resolve_grh_to_l2() 1160 } else if (is_multicast_gid(&attr->grh.dgid)) { in mlx4_resolve_grh_to_l2() 1164 ah->mac[i] = attr->grh.dgid.raw[i + 10]; in mlx4_resolve_grh_to_l2() 1167 attr->grh.sgid_index, &sgid); in mlx4_resolve_grh_to_l2() 1215 ah->av.gid_index = attr->grh.sgid_index; in mlx4_create_ah() 1216 ah->av.hop_limit = attr->grh.hop_limit; in mlx4_create_ah() 1218 htobe32((attr->grh.traffic_class << 20) | in mlx4_create_ah() 1219 attr->grh.flow_label); in mlx4_create_ah() [all …]
|
| /freebsd-14.2/contrib/ofed/opensm/libvendor/ |
| H A 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()
|
| H A D | osm_vendor_mtl.c | 121 ib_grh_set_ver_class_flow(p_rcv_desc->grh. in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 123 p_rcv_desc->grh. in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 125 p_rcv_desc->grh. in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 128 p_rcv_desc->grh.hop_limit; in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 130 &p_rcv_desc->grh.sgid, sizeof(ib_net64_t)); in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr() 132 p_rcv_desc->grh.dgid, sizeof(ib_net64_t)); in __osm_mtl_conv_ibmgt_rcv_desc_to_osm_addr()
|
| /freebsd-14.2/sys/dev/bnxt/bnxt_re/ |
| H A D | ib_verbs.c | 920 gid, &gattr, &ah_attr->grh, NULL); in bnxt_re_get_ah_info() 954 ah_attr->grh.dgid.raw) && in bnxt_re_init_dmac() 1026 ah->qplib_ah.flow_label = ah_attr->grh.flow_label; in bnxt_re_create_ah() 1027 ah->qplib_ah.hop_limit = ah_attr->grh.hop_limit; in bnxt_re_create_ah() 2653 qp_attr->ah_attr.grh.sgid_index); in bnxt_re_modify_qp() 2657 qp_attr->ah_attr.grh.traffic_class; in bnxt_re_modify_qp() 2662 qp_attr->ah_attr.grh.sgid_index, in bnxt_re_modify_qp() 2664 &qp_attr->ah_attr.grh, NULL); in bnxt_re_modify_qp() 2966 qp->qp1_hdr.grh.ip_version = 6; in bnxt_re_build_qp1_send() 2967 qp->qp1_hdr.grh.payload_length = in bnxt_re_build_qp1_send() [all …]
|
| /freebsd-14.2/sys/dev/irdma/ |
| H A D | irdma_kcompat.c | 547 ah->sgid_index = attr->grh.sgid_index; in irdma_create_ah() 548 memcpy(&ah->dgid, &attr->grh.dgid, sizeof(ah->dgid)); in irdma_create_ah() 551 attr->grh.sgid_index, &sgid, &sgid_attr); in irdma_create_ah() 556 attr->grh.sgid_index, attr->port_num); in irdma_create_ah() 561 rdma_gid2ip((struct sockaddr *)&dgid_addr, &attr->grh.dgid); in irdma_create_ah() 574 ah_info->flow_label = attr->grh.flow_label; in irdma_create_ah() 575 ah_info->hop_ttl = attr->grh.hop_limit; in irdma_create_ah() 576 ah_info->tc_tos = attr->grh.traffic_class; in irdma_create_ah() 1297 attr->ah_attr.grh.sgid_index, &sgid, in kc_irdma_set_roce_cm_info()
|