Home
last modified time | relevance | path

Searched refs:dgid (Results 1 – 25 of 81) sorted by relevance

1234

/freebsd/contrib/ofed/libibverbs/
H A Dmarshall.c42 memcpy(dst->grh.dgid.raw, src->grh.dgid, sizeof dst->grh.dgid); in ibv_copy_ah_attr_from_kern()
95 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid); in ibv_copy_path_rec_from_kern()
120 memcpy(dst->dgid, src->dgid.raw, sizeof src->dgid); in ibv_copy_path_rec_to_kern()
H A Dsa.h43 union ibv_gid dgid; member
105 union ibv_gid dgid; member
H A Dverbs.c834 (struct in6_addr *)&ah_attr->grh.dgid); in set_ah_attr_by_ipv4()
852 if (grh->dgid.raw[0] == 0xFF) { in set_ah_attr_by_ipv6()
857 ah_attr->grh.dgid = grh->sgid; in set_ah_attr_by_ipv6()
867 ret = ibv_find_gid_index(context, port_num, &grh->dgid, in set_ah_attr_by_ipv6()
1003 dst_family = ipv6_addr_v4mapped((struct in6_addr *)attr->grh.dgid.raw) ? in ibv_resolve_eth_l2_from_gid()
1008 if (create_peer_from_gid(dst_family, attr->grh.dgid.raw, &dst)) in ibv_resolve_eth_l2_from_gid()
H A Dcmd.c1274 memcpy(attr->ah_attr.grh.dgid.raw, resp.dest.dgid, 16); in ibv_cmd_query_qp()
1286 memcpy(attr->alt_ah_attr.grh.dgid.raw, resp.alt_dest.dgid, 16); in ibv_cmd_query_qp()
1336 memcpy(cmd->dest.dgid, attr->ah_attr.grh.dgid.raw, 16); in copy_modify_qp_fields()
1368 memcpy(cmd->alt_dest.dgid, attr->alt_ah_attr.grh.dgid.raw, 16); in copy_modify_qp_fields()
1681 memcpy(cmd.attr.grh.dgid, attr->grh.dgid.raw, 16); in ibv_cmd_create_ah()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_marshall.c41 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid); in ib_copy_ah_attr_to_user()
99 memcpy(dst->dgid, src->dgid.raw, sizeof src->dgid); in ib_copy_path_rec_to_user()
125 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid); in ib_copy_path_rec_from_user()
H A Dib_verbs.c541 union ib_gid *sgid, union ib_gid *dgid) in get_gids_from_rdma_hdr() argument
547 if (!sgid || !dgid) in get_gids_from_rdma_hdr()
560 (struct in6_addr *)dgid); in get_gids_from_rdma_hdr()
564 *dgid = hdr->ibgrh.dgid; in get_gids_from_rdma_hdr()
582 union ib_gid dgid; in ib_init_ah_from_wc() local
594 &sgid, &dgid); in ib_init_ah_from_wc()
607 &dgid, gid_type, &gid_index); in ib_init_ah_from_wc()
611 ret = ib_get_cached_gid(device, port_num, gid_index, &dgid, &dgid_attr); in ib_init_ah_from_wc()
618 ret = rdma_addr_find_l2_eth_by_grh(&dgid, &sgid, ah_attr->dmac, in ib_init_ah_from_wc()
633 ah_attr->grh.dgid = sgid; in ib_init_ah_from_wc()
[all …]
H A Dib_sa_query.c161 { PATH_REC_FIELD(dgid),
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()
677 rdma_gid2ip(&dgid_addr._sockaddr, &rec->dgid); in ib_init_ah_from_path()
716 ah_attr->grh.dgid = rec->dgid; in ib_init_ah_from_path()
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_ah.c61 memcpy(ah->av.ib.dgid, ah_attr->grh.dgid.raw, 16); in create_ib_ah()
87 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof(in6)); in create_iboe_ah()
126 memcpy(ah->av.eth.dgid, ah_attr->grh.dgid.raw, 16); in create_iboe_ah()
205 memcpy(ah_attr->grh.dgid.raw, ah->av.ib.dgid, 16); in mlx4_ib_query_ah()
/freebsd/sys/dev/mthca/
H A Dmthca_av.c66 __be32 dgid[4]; member
215 memcpy(av->dgid, ah_attr->grh.dgid.raw, 16); in mthca_create_ah()
218 av->dgid[3] = cpu_to_be32(2); in mthca_create_ah()
286 ah->av->dgid, 16); in mthca_read_ah()
318 memcpy(attr->grh.dgid.raw, ah->av->dgid, 16); in mthca_ah_query()
/freebsd/sys/ofed/include/rdma/
H A Dib_addr.h151 const union ib_gid *dgid,
359 static inline u16 rdma_get_vlan_id(union ib_gid *dgid) in rdma_get_vlan_id() argument
363 vid = dgid->raw[11] << 8 | dgid->raw[12]; in rdma_get_vlan_id()
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibping.c55 static ibmad_gid_t dgid; variable
188 if (!inet_pton(AF_INET6, optarg, &dgid)) { in process_opt()
255 memcpy(&portid.gid, &dgid, sizeof(portid.gid)); in main()
H A Dibsysstat.c55 static ibmad_gid_t dgid; variable
290 if (!inet_pton(AF_INET6, optarg, &dgid)) { in process_opt()
359 memcpy(&portid.gid, &dgid, sizeof(portid.gid)); in main()
H A Dibccquery.c56 static ibmad_gid_t dgid; variable
349 if (!inet_pton(AF_INET6, optarg, &dgid)) { in process_opt()
420 memcpy(&portid.gid, &dgid, sizeof(portid.gid)); in main()
H A Dibccconfig.c59 static ibmad_gid_t dgid; variable
554 if (!inet_pton(AF_INET6, optarg, &dgid)) { in process_opt()
632 memcpy(&portid.gid, &dgid, sizeof(portid.gid)); in main()
H A Dvendstat.c64 static ibmad_gid_t dgid; variable
340 if (!inet_pton(AF_INET6, optarg, &dgid)) { in process_opt()
411 memcpy(&portid.gid, &dgid, sizeof(portid.gid)); in main()
H A Dsaquery.c72 ib_gid_t sgid, dgid, gid, mgid; member
235 inet_ntop(AF_INET6, p_pr->dgid.raw, gid_str, sizeof gid_str), in dump_path_record()
1063 memcpy(gid, &p_pr->dgid, 16); in sm_pr_query()
1080 CHECK_AND_SET_GID(p->dgid, pr.dgid, PR, DGID); in query_path_records()
1575 if (inet_pton(AF_INET6, dst_addr, &p->dgid) <= 0) in process_opt()
1657 if (inet_pton(AF_INET6, optarg, &p->dgid) <= 0) in process_opt()
/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_sa_path_record.c895 p_pr->dgid = *p_dgid; in pr_rcv_build_pr()
899 p_pr->dgid.unicast.prefix = in pr_rcv_build_pr()
901 p_pr->dgid.unicast.interface_id = p_dest_alias_guid->alias_guid; in pr_rcv_build_pr()
1357 if (!ib_gid_is_link_local(&p_pr->dgid) && in osm_pr_get_end_points()
1358 !ib_gid_is_multicast(&p_pr->dgid) && in osm_pr_get_end_points()
1359 ib_gid_get_subnet_prefix(&p_pr->dgid) != in osm_pr_get_end_points()
1361 dest_guid = find_router(sa, p_pr->dgid.unicast.prefix); in osm_pr_get_end_points()
1367 inet_ntop(AF_INET6, p_pr->dgid.raw, in osm_pr_get_end_points()
1373 *pp_dgid = &p_pr->dgid; in osm_pr_get_end_points()
1375 dest_guid = p_pr->dgid.unicast.interface_id; in osm_pr_get_end_points()
[all …]
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_main.c346 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find()
372 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add()
416 memset(iter->path.pathrec.dgid.raw, 0, 16); in ipoib_path_iter_init()
441 if (memcmp(iter->path.pathrec.dgid.raw, path->pathrec.dgid.raw, in ipoib_path_iter_next()
474 path->pathrec.dgid.raw, ":"); in ipoib_mark_paths_invalid()
522 be16_to_cpu(pathrec->dlid), pathrec->dgid.raw, ":"); in path_rec_completion()
525 status, path->pathrec.dgid.raw, ":"); in path_rec_completion()
602 memcpy(path->pathrec.dgid.raw, &hwaddr[4], sizeof (union ib_gid)); in path_rec_create()
643 p_rec.dgid.raw, ":", in path_rec_start()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_ah.c37 memcpy(ah->av.rgid, &ah_attr->grh.dgid, 16); in create_ib_ah()
111 memcpy(&ah_attr->grh.dgid, ah->av.rgid, 16); in mlx5_ib_query_ah()
/freebsd/contrib/ofed/libmlx4/
H A Dverbs.c1170 if (link_local_gid(&attr->grh.dgid)) { in mlx4_resolve_grh_to_l2()
1171 memcpy(ah->mac, &attr->grh.dgid.raw[8], 3); in mlx4_resolve_grh_to_l2()
1172 memcpy(ah->mac + 3, &attr->grh.dgid.raw[13], 3); in mlx4_resolve_grh_to_l2()
1175 vid = get_vlan_id(&attr->grh.dgid); in mlx4_resolve_grh_to_l2()
1176 } else if (is_multicast_gid(&attr->grh.dgid)) { in mlx4_resolve_grh_to_l2()
1180 ah->mac[i] = attr->grh.dgid.raw[i + 10]; in mlx4_resolve_grh_to_l2()
1236 memcpy(ah->av.dgid, attr->grh.dgid.raw, 16); in mlx4_create_ah()
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.c466 union ib_gid *dgid = &ah_attr->grh.dgid; in qlnxr_get_vlan_id_gsi() local
468 tmp_vlan_id = (dgid->raw[11] << 8) | dgid->raw[12]; in qlnxr_get_vlan_id_gsi()
552 udh->grh.destination_gid = grh->dgid; in qlnxr_gsi_build_header()
579 ipv4_addr = qedr_get_ipv4_from_gid(grh->dgid.raw); in qlnxr_gsi_build_header()
H A Dqlnxr_def.h835 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/sys/ofed/include/uapi/rdma/
H A Dib_user_sa.h61 __u8 dgid[16]; member
/freebsd/contrib/ofed/librdmacm/
H A Dacm.c199 memcpy(&dst->sib_addr, &path->dgid, 16); in ucma_ib_set_addr()
419 memcpy(&data->info.path.dgid, in ucma_ib_resolve()
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_rdma.h183 union ecore_gid dgid; /* GRH DGID; IPv4/6 Destination IP */ member

1234