Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_av.c50 memcpy(av->grh.dgid.raw, grh->dgid.raw, sizeof(grh->dgid.raw)); in rxe_av_from_attr()
64 memcpy(grh->dgid.raw, av->grh.dgid.raw, sizeof(av->grh.dgid.raw)); in rxe_av_to_attr()
82 &rdma_ah_read_grh(attr)->dgid); in rxe_av_fill_ip_info()
Drxe_recv.c240 union ib_gid dgid; in rxe_rcv_mcast_pkt() local
247 (struct in6_addr *)&dgid); in rxe_rcv_mcast_pkt()
249 memcpy(&dgid, &ipv6_hdr(skb)->daddr, sizeof(dgid)); in rxe_rcv_mcast_pkt()
252 mcg = rxe_pool_get_key(&rxe->mc_grp_pool, &dgid); in rxe_rcv_mcast_pkt()
316 union ib_gid dgid; in rxe_chk_dgid() local
324 (struct in6_addr *)&dgid); in rxe_chk_dgid()
325 pdgid = &dgid; in rxe_chk_dgid()
/kernel/linux/linux-5.10/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()
Dlag.c24 is_ipv4 = ipv6_addr_v4mapped((struct in6_addr *)ah_attr->grh.dgid.raw); in rdma_build_skb()
54 memcpy(&iph->daddr, ah_attr->grh.dgid.raw + 12, in rdma_build_skb()
66 memcpy(&ip6h->daddr, ah_attr->grh.dgid.raw, in rdma_build_skb()
Daddr.c729 } sgid, dgid; in roce_resolve_route_from_path() local
739 rdma_gid2ip((struct sockaddr *)&dgid, &rec->dgid); in roce_resolve_route_from_path()
741 if (sgid._sockaddr.sa_family != dgid._sockaddr.sa_family) in roce_resolve_route_from_path()
750 ret = addr_resolve((struct sockaddr *)&sgid, (struct sockaddr *)&dgid, in roce_resolve_route_from_path()
815 const union ib_gid *dgid, in rdma_addr_find_l2_eth_by_grh() argument
828 rdma_gid2ip((struct sockaddr *)&dgid_addr, dgid); in rdma_addr_find_l2_eth_by_grh()
Dverbs.c714 union ib_gid *sgid, union ib_gid *dgid) in ib_get_gids_from_rdma_hdr() argument
720 if (!sgid || !dgid) in ib_get_gids_from_rdma_hdr()
733 (struct in6_addr *)dgid); in ib_get_gids_from_rdma_hdr()
737 *dgid = hdr->ibgrh.dgid; in ib_get_gids_from_rdma_hdr()
761 if (rdma_link_local_addr((struct in6_addr *)grh->dgid.raw) && in ib_resolve_unicast_gid_dmac()
763 rdma_get_ll_mac((struct in6_addr *)grh->dgid.raw, in ib_resolve_unicast_gid_dmac()
768 ret = rdma_addr_find_l2_eth_by_grh(&sgid_attr->gid, &grh->dgid, in ib_resolve_unicast_gid_dmac()
798 union ib_gid dgid; in ib_init_ah_attr_from_wc() local
813 &sgid, &dgid); in ib_init_ah_attr_from_wc()
828 vlan_id, &dgid, in ib_init_ah_attr_from_wc()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
230 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()
581 union ib_gid dgid; in mlx4_ib_send_to_slave() local
583 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_send_to_slave()
585 rdma_ah_set_grh(&attr, &dgid, 0, 0, 0, 0); in mlx4_ib_send_to_slave()
697 union ib_gid dgid; in mlx4_ib_demux_mad() local
700 if (get_gids_from_l3_hdr(grh, &sgid, &dgid)) in mlx4_ib_demux_mad()
710 err = mlx4_get_slave_from_roce_gid(dev->dev, port, dgid.raw, &slave); in mlx4_ib_demux_mad()
713 err = mlx4_get_slave_from_roce_gid(dev->dev, other_port, dgid.raw, &slave); in mlx4_ib_demux_mad()
717 slave, grh->dgid.raw, port, other_port); in mlx4_ib_demux_mad()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_ah.c76 memcpy(ah->av.dgid, grh->dgid.raw, HNS_ROCE_GID_SIZE); in hns_roce_create_ah()
103 rdma_ah_set_dgid_raw(ah_attr, ah->av.dgid); in hns_roce_query_ah()
/kernel/linux/linux-5.10/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()
248 rdma_ah_set_dgid_raw(attr, &grh->dgid[0]); in ocrdma_query_ah()
/kernel/linux/linux-5.10/include/rdma/
Dib_sa.h164 union ib_gid dgid; member
225 ib->dgid.global.interface_id in path_conv_opa_to_ib()
227 ib->dgid.global.subnet_prefix in path_conv_opa_to_ib()
228 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
231 ib->dgid.global.subnet_prefix in path_conv_opa_to_ib()
232 = opa->dgid.global.subnet_prefix; in path_conv_opa_to_ib()
250 (ib_is_opa_gid(&ib->dgid))) { in path_conv_ib_to_opa()
252 dlid = htonl(opa_get_lid_from_gid(&ib->dgid)); in path_conv_ib_to_opa()
Dib_addr.h256 static inline u16 rdma_get_vlan_id(union ib_gid *dgid) in rdma_get_vlan_id() argument
260 vid = dgid->raw[11] << 8 | dgid->raw[12]; in rdma_get_vlan_id()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_misc.c257 pvrdma_gid_to_ib(&dst->dgid, &src->dgid); in pvrdma_global_route_to_ib()
267 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
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
Dipoib_main.c563 ret = memcmp(gid, path->pathrec.dgid.raw, in __path_find()
589 ret = memcmp(path->pathrec.dgid.raw, tpath->pathrec.dgid.raw, in __path_add()
617 ipoib_del_neighs_by_gid(dev, path->pathrec.dgid.raw); in path_free()
636 memset(iter->path.pathrec.dgid.raw, 0, 16); in ipoib_path_iter_init()
660 if (memcmp(iter->path.pathrec.dgid.raw, path->pathrec.dgid.raw, in ipoib_path_iter_next()
693 path->pathrec.dgid.raw); in ipoib_mark_paths_invalid()
756 pathrec->dgid.raw); in path_rec_completion()
759 status, path->pathrec.dgid.raw); in path_rec_completion()
781 if (memcmp(pathrec->dgid.raw, path->pathrec.dgid.raw, in path_rec_completion()
786 dev->name, pathrec->dgid.raw, in path_rec_completion()
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
Dib_user_sa.h37 __u8 dgid[16]; member
/kernel/linux/linux-5.10/include/uapi/rdma/
Dib_user_sa.h56 __u8 dgid[16]; member
Drdma_user_rxe.h56 union rxe_gid dgid; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/
Dib_user_sa.h24 __u8 dgid[16]; member
Drdma_user_rxe.h20 union rxe_gid dgid; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c506 memcpy(temp32, ah->dgid.data, sizeof(struct bnxt_qplib_gid)); in bnxt_qplib_create_ah()
507 req.dgid[0] = cpu_to_le32(temp32[0]); in bnxt_qplib_create_ah()
508 req.dgid[1] = cpu_to_le32(temp32[1]); in bnxt_qplib_create_ah()
509 req.dgid[2] = cpu_to_le32(temp32[2]); in bnxt_qplib_create_ah()
510 req.dgid[3] = cpu_to_le32(temp32[3]); in bnxt_qplib_create_ah()

1234