Home
last modified time | relevance | path

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

123

/drivers/infiniband/sw/rxe/
Drxe_av.c68 memcpy(av->grh.dgid.raw, grh->dgid.raw, sizeof(grh->dgid.raw)); in rxe_av_from_attr()
82 memcpy(grh->dgid.raw, av->grh.dgid.raw, sizeof(av->grh.dgid.raw)); in rxe_av_to_attr()
98 &rdma_ah_read_grh(attr)->dgid); in rxe_av_fill_ip_info()
Drxe_recv.c283 union ib_gid dgid; in rxe_rcv_mcast_pkt() local
288 (struct in6_addr *)&dgid); in rxe_rcv_mcast_pkt()
290 memcpy(&dgid, &ipv6_hdr(skb)->daddr, sizeof(dgid)); in rxe_rcv_mcast_pkt()
293 mcg = rxe_pool_get_key(&rxe->mc_grp_pool, &dgid); in rxe_rcv_mcast_pkt()
334 union ib_gid dgid; in rxe_match_dgid() local
339 (struct in6_addr *)&dgid); in rxe_match_dgid()
340 pdgid = &dgid; in rxe_match_dgid()
/drivers/infiniband/core/
Duverbs_marshall.c85 memcpy(dst->grh.dgid, grh->dgid.raw, sizeof(grh->dgid)); in ib_copy_ah_attr_to_user()
139 memcpy(dst->dgid, src->dgid.raw, sizeof(src->dgid)); in __ib_copy_path_rec_to_user()
182 (ib_is_opa_gid((union ib_gid *)src->dgid))) { in ib_copy_path_rec_from_user()
185 dlid = opa_get_lid_from_gid((union ib_gid *)src->dgid); in ib_copy_path_rec_from_user()
191 memcpy(dst->dgid.raw, src->dgid, sizeof dst->dgid); in ib_copy_path_rec_from_user()
Daddr.c726 } sgid, dgid; in roce_resolve_route_from_path() local
734 rdma_gid2ip((struct sockaddr *)&dgid, &rec->dgid); in roce_resolve_route_from_path()
736 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path()
745 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path()
810 const union ib_gid *dgid, in rdma_addr_find_l2_eth_by_grh() argument
823 rdma_gid2ip((struct sockaddr *)&dgid_addr, dgid); in rdma_addr_find_l2_eth_by_grh()
Dverbs.c692 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument
698 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr()
711 (struct in6_addr *)dgid); in ib_get_gids_from_rdma_hdr()
715 *dgid = hdr->ibgrh.dgid; in ib_get_gids_from_rdma_hdr()
739 if (rdma_link_local_addr((struct in6_addr *)grh->dgid.raw) && in ib_resolve_unicast_gid_dmac()
741 rdma_get_ll_mac((struct in6_addr *)grh->dgid.raw, in ib_resolve_unicast_gid_dmac()
746 ret = rdma_addr_find_l2_eth_by_grh(&sgid_attr->gid, &grh->dgid, in ib_resolve_unicast_gid_dmac()
776 union ib_gid dgid; in ib_init_ah_attr_from_wc() local
791 &sgid, &dgid); in ib_init_ah_attr_from_wc()
806 vlan_id, &dgid, in ib_init_ah_attr_from_wc()
[all …]
Dcma.c814 union ib_gid gid, sgid, *dgid; in cma_resolve_ib_dev() local
822 dgid = (union ib_gid *) &addr->sib_addr; in cma_resolve_ib_dev()
839 if (!memcmp(&gid, dgid, sizeof(gid))) { in cma_resolve_ib_dev()
847 dgid->global.subnet_prefix) && in cma_resolve_ib_dev()
1266 memcpy(&ib->sib_addr, &path->dgid, 16); in cma_save_ib_info()
2056 rdma_addr_set_dgid(&rt->addr.dev_addr, &rt->path_rec[0].dgid); in cma_ib_new_conn_id()
2239 union ib_gid *dgid) in rdma_read_gids() argument
2246 if (dgid) in rdma_read_gids()
2247 memset(dgid, 0, sizeof(*dgid)); in rdma_read_gids()
2254 if (dgid) in rdma_read_gids()
[all …]
/drivers/infiniband/hw/qib/
Dqib_ruc.c101 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr()
105 grh->dgid.global.subnet_prefix, in qib_ruc_check_hdr()
106 grh->dgid.global.interface_id)) in qib_ruc_check_hdr()
140 if (!gid_ok(&hdr->u.l.grh.dgid, in qib_ruc_check_hdr()
144 grh->dgid.global.subnet_prefix, in qib_ruc_check_hdr()
145 grh->dgid.global.interface_id)) in qib_ruc_check_hdr()
200 hdr->dgid = grh->dgid; in qib_make_grh()
/drivers/infiniband/hw/mlx4/
Dah.c62 memcpy(ah->av.ib.dgid, grh->dgid.raw, 16); in create_ib_ah()
89 memcpy(&in6, grh->dgid.raw, sizeof(in6)); in create_iboe_ah()
138 memcpy(ah->av.eth.dgid, grh->dgid.raw, 16); in create_iboe_ah()
227 rdma_ah_set_dgid_raw(ah_attr, ah->av.ib.dgid); in mlx4_ib_query_ah()
Dmad.c487 union ib_gid *dgid) in get_gids_from_l3_hdr() argument
500 sgid, dgid); in get_gids_from_l3_hdr()
564 union ib_gid dgid; in mlx4_ib_send_to_slave() local
566 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_send_to_slave()
568 rdma_ah_set_grh(&attr, &dgid, 0, 0, 0, 0); in mlx4_ib_send_to_slave()
680 union ib_gid dgid; in mlx4_ib_demux_mad() local
683 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_demux_mad()
693 err = mlx4_get_slave_from_roce_gid(dev->dev, port, dgid.raw, &slave); in mlx4_ib_demux_mad()
696 err = mlx4_get_slave_from_roce_gid(dev->dev, other_port, dgid.raw, &slave); in mlx4_ib_demux_mad()
700 slave, grh->dgid.raw, port, other_port); in mlx4_ib_demux_mad()
[all …]
/drivers/infiniband/hw/hns/
Dhns_roce_ah.c79 memcpy(ah->av.dgid, grh->dgid.raw, HNS_ROCE_GID_SIZE); in hns_roce_create_ah()
96 rdma_ah_set_dgid_raw(ah_attr, ah->av.dgid); in hns_roce_query_ah()
Dhns_roce_hw_v1.c198 memcpy(&ud_sq_wqe->dgid[0], &ah->av.dgid[0], GID_LEN); in hns_roce_v1_post_send()
713 union ib_gid dgid; in hns_roce_v1_rsv_lp_qp() local
826 memcpy(&dgid.raw, &subnet_prefix, sizeof(u64)); in hns_roce_v1_rsv_lp_qp()
827 memcpy(&dgid.raw[8], hr_dev->dev_addr[port], 3); in hns_roce_v1_rsv_lp_qp()
828 memcpy(&dgid.raw[13], hr_dev->dev_addr[port] + 3, 3); in hns_roce_v1_rsv_lp_qp()
829 dgid.raw[11] = 0xff; in hns_roce_v1_rsv_lp_qp()
830 dgid.raw[12] = 0xfe; in hns_roce_v1_rsv_lp_qp()
831 dgid.raw[8] ^= 2; in hns_roce_v1_rsv_lp_qp()
832 rdma_ah_set_dgid_raw(&attr.ah_attr, dgid.raw); in hns_roce_v1_rsv_lp_qp()
2989 memcpy(context->dgid, grh->dgid.raw, in hns_roce_v1_m_qp()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_av.c66 __be32 dgid[4]; member
218 memcpy(av->dgid, grh->dgid.raw, 16); in mthca_create_ah()
221 av->dgid[3] = cpu_to_be32(2); in mthca_create_ah()
286 ah->av->dgid, 16); in mthca_read_ah()
320 rdma_ah_set_dgid_raw(attr, ah->av->dgid); in mthca_ah_query()
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c137 rdma_gid2ip((struct sockaddr*)&dgid_addr, &ib_grh->dgid); in set_av_attr()
145 memcpy(&grh.dgid[0], ib_grh->dgid.raw, in set_av_attr()
146 sizeof(ib_grh->dgid.raw)); in set_av_attr()
246 rdma_ah_set_dgid_raw(attr, &grh->dgid[0]); in ocrdma_query_ah()
/drivers/infiniband/hw/hfi1/
Druc.c95 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
100 grh->dgid.global.subnet_prefix, in hfi1_ruc_check_hdr()
101 grh->dgid.global.interface_id)) in hfi1_ruc_check_hdr()
132 if (!gid_ok(&packet->grh->dgid, ibp->rvp.gid_prefix, in hfi1_ruc_check_hdr()
137 grh->dgid.global.subnet_prefix, in hfi1_ruc_check_hdr()
138 grh->dgid.global.interface_id)) in hfi1_ruc_check_hdr()
185 hdr->dgid = grh->dgid; in hfi1_make_grh()
Dud.c208 if (ib_is_opa_gid(&grd.dgid)) in ud_loopback()
209 grd.dgid.global.interface_id = in ud_loopback()
658 grh->sgid = old_grh->dgid; in return_cnp_16B()
659 grh->dgid = old_grh->sgid; in return_cnp_16B()
716 grh->sgid = old_grh->dgid; in return_cnp()
717 grh->dgid = old_grh->sgid; in return_cnp()
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_misc.c258 pvrdma_gid_to_ib(&dst->dgid, &src->dgid); in pvrdma_global_route_to_ib()
268 ib_gid_to_pvrdma(&dst->dgid, &src->dgid); in ib_global_route_to_pvrdma()
Dpvrdma_verbs.h185 union pvrdma_gid dgid; member
199 union pvrdma_gid dgid; member
Dpvrdma_verbs.c525 rdma_is_multicast_addr((struct in6_addr *)grh->dgid.raw)) in pvrdma_create_ah()
538 memcpy(ah->av.dgid, grh->dgid.raw, 16); in pvrdma_create_ah()
/drivers/infiniband/ulp/ipoib/
Dipoib_main.c565 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find()
591 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add()
619 ipoib_del_neighs_by_gid(dev, path->pathrec.dgid.raw); in path_free()
638 memset(iter->path.pathrec.dgid.raw, 0, 16); in ipoib_path_iter_init()
662 if (memcmp(iter->path.pathrec.dgid.raw, path->pathrec.dgid.raw, in ipoib_path_iter_next()
695 path->pathrec.dgid.raw); in ipoib_mark_paths_invalid()
758 pathrec->dgid.raw); in path_rec_completion()
761 status, path->pathrec.dgid.raw); in path_rec_completion()
783 if (memcmp(pathrec->dgid.raw, path->pathrec.dgid.raw, in path_rec_completion()
788 dev->name, pathrec->dgid.raw, in path_rec_completion()
[all …]
Dipoib_ib.c179 union ib_gid *dgid; in ipoib_ib_handle_rx_wc() local
224 dgid = &((struct ib_grh *)skb->data)->dgid; in ipoib_ib_handle_rx_wc()
226 if (!(wc->wc_flags & IB_WC_GRH) || dgid->raw[0] != 0xff) in ipoib_ib_handle_rx_wc()
228 else if (memcmp(dgid, dev->broadcast + 4, sizeof(union ib_gid)) == 0) in ipoib_ib_handle_rx_wc()
/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c509 memcpy(temp32, ah->dgid.data, sizeof(struct bnxt_qplib_gid)); in bnxt_qplib_create_ah()
510 req.dgid[0] = cpu_to_le32(temp32[0]); in bnxt_qplib_create_ah()
511 req.dgid[1] = cpu_to_le32(temp32[1]); in bnxt_qplib_create_ah()
512 req.dgid[2] = cpu_to_le32(temp32[2]); in bnxt_qplib_create_ah()
513 req.dgid[3] = cpu_to_le32(temp32[3]); in bnxt_qplib_create_ah()
Dqplib_fp.c1219 memcpy(temp32, qp->ah.dgid.data, sizeof(struct bnxt_qplib_gid)); in bnxt_qplib_modify_qp()
1220 req.dgid[0] = cpu_to_le32(temp32[0]); in bnxt_qplib_modify_qp()
1221 req.dgid[1] = cpu_to_le32(temp32[1]); in bnxt_qplib_modify_qp()
1222 req.dgid[2] = cpu_to_le32(temp32[2]); in bnxt_qplib_modify_qp()
1223 req.dgid[3] = cpu_to_le32(temp32[3]); in bnxt_qplib_modify_qp()
1322 temp32[0] = le32_to_cpu(sb->dgid[0]); in bnxt_qplib_query_qp()
1323 temp32[1] = le32_to_cpu(sb->dgid[1]); in bnxt_qplib_query_qp()
1324 temp32[2] = le32_to_cpu(sb->dgid[2]); in bnxt_qplib_query_qp()
1325 temp32[3] = le32_to_cpu(sb->dgid[3]); in bnxt_qplib_query_qp()
1326 memcpy(qp->ah.dgid.data, temp32, sizeof(qp->ah.dgid.data)); in bnxt_qplib_query_qp()
/drivers/infiniband/hw/qedr/
Dverbs.c1030 memcpy(&qp_params->dgid.bytes[0], in get_gid_info_from_table()
1031 &grh->dgid, in get_gid_info_from_table()
1032 sizeof(qp_params->dgid)); in get_gid_info_from_table()
1040 memcpy(&qp_params->dgid.bytes[0], in get_gid_info_from_table()
1041 &grh->dgid, in get_gid_info_from_table()
1042 sizeof(qp_params->dgid)); in get_gid_info_from_table()
1047 memset(&qp_params->dgid, 0, sizeof(qp_params->dgid)); in get_gid_info_from_table()
1051 qedr_get_ipv4_from_gid(grh->dgid.raw); in get_gid_info_from_table()
1052 qp_params->dgid.ipv4_addr = ipv4_addr; in get_gid_info_from_table()
1061 qp_params->dgid.dwords[i] = ntohl(qp_params->dgid.dwords[i]); in get_gid_info_from_table()
[all …]
Dqedr.h507 if (!memcmp(&grh->dgid, &zero_sgid, sizeof(union ib_gid))) { in qedr_get_dmac()
513 memcpy(&in6, grh->dgid.raw, sizeof(in6)); in qedr_get_dmac()
/drivers/infiniband/hw/mlx5/
Dah.c43 memcpy(ah->av.rgid, &grh->dgid, 16); in create_ib_ah()

123