Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/infiniband/core/
Dverbs.c369 if (dest->grh.sgid_attr) in rdma_copy_ah_attr()
370 rdma_hold_gid_attr(dest->grh.sgid_attr); in rdma_copy_ah_attr()
389 if (old->grh.sgid_attr) in rdma_replace_ah_attr()
390 rdma_hold_gid_attr(old->grh.sgid_attr); in rdma_replace_ah_attr()
409 src->grh.sgid_attr = NULL; in rdma_move_ah_attr()
428 if (ah_attr->grh.sgid_attr) { in rdma_check_ah_attr()
433 if (ah_attr->grh.sgid_attr->index != ah_attr->grh.sgid_index || in rdma_check_ah_attr()
434 ah_attr->grh.sgid_attr->port_num != ah_attr->port_num) in rdma_check_ah_attr()
448 const struct ib_gid_attr *sgid_attr; in rdma_fill_sgid_attr() local
452 *old_sgid_attr = ah_attr->grh.sgid_attr; in rdma_fill_sgid_attr()
[all …]
Dlag.c52 memcpy(&iph->saddr, ah_attr->grh.sgid_attr->gid.raw + 12, in rdma_build_skb()
64 memcpy(&ip6h->saddr, ah_attr->grh.sgid_attr->gid.raw, in rdma_build_skb()
74 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac); in rdma_build_skb()
118 ah_attr->grh.sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in rdma_lag_get_ah_roce_slave()
123 master = rdma_read_gid_attr_ndev_rcu(ah_attr->grh.sgid_attr); in rdma_lag_get_ah_roce_slave()
Daddr.c531 ndev = rdma_read_gid_attr_ndev_rcu(addr->sgid_attr); in set_addr_netns_by_gid_rcu()
572 if (!addr->sgid_attr) { in addr_resolve()
748 dev_addr.sgid_attr = attr; in roce_resolve_route_from_path()
816 u8 *dmac, const struct ib_gid_attr *sgid_attr, in rdma_addr_find_l2_eth_by_grh() argument
832 dev_addr.sgid_attr = sgid_attr; in rdma_addr_find_l2_eth_by_grh()
Dcma.c486 if (id_priv->id.route.addr.dev_addr.sgid_attr) { in cma_release_dev()
487 rdma_put_gid_attr(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_release_dev()
488 id_priv->id.route.addr.dev_addr.sgid_attr = NULL; in cma_release_dev()
572 const struct ib_gid_attr *sgid_attr; in cma_validate_port() local
593 sgid_attr = rdma_find_gid_by_port(device, gid, gid_type, port, ndev); in cma_validate_port()
596 return sgid_attr; in cma_validate_port()
600 const struct ib_gid_attr *sgid_attr) in cma_bind_sgid_attr() argument
602 WARN_ON(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_bind_sgid_attr()
603 id_priv->id.route.addr.dev_addr.sgid_attr = sgid_attr; in cma_bind_sgid_attr()
618 const struct ib_gid_attr *sgid_attr; in cma_acquire_dev_by_src_ip() local
[all …]
Dmulticast.c740 const struct ib_gid_attr *sgid_attr; in ib_init_ah_from_mcmember() local
750 sgid_attr = rdma_find_gid_by_port(device, &rec->port_gid, in ib_init_ah_from_mcmember()
752 if (IS_ERR(sgid_attr)) in ib_init_ah_from_mcmember()
753 return PTR_ERR(sgid_attr); in ib_init_ah_from_mcmember()
765 sgid_attr); in ib_init_ah_from_mcmember()
Dcore_priv.h377 u8 *dmac, const struct ib_gid_attr *sgid_attr,
Dcm.c541 const struct ib_gid_attr *sgid_attr, in cm_init_av_by_path() argument
550 port = get_cm_port_from_path(path, sgid_attr); in cm_init_av_by_path()
572 &new_ah_attr, sgid_attr); in cm_init_av_by_path()
1834 param->ppath_sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; in cm_format_req_event()
2149 gid_attr = grh->sgid_attr; in cm_req_handler()
3487 ret = cm_init_av_by_path(param->path, param->sgid_attr, in ib_send_cm_sidr_req()
3543 param->sgid_attr = rx_cm_id->av.ah_attr.grh.sgid_attr; in cm_format_sidr_req_event()
3722 param->sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; in cm_format_sidr_rep_event()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_av.c32 type = rdma_gid_attr_network_type(grh->sgid_attr); in rxe_av_chk_attr()
76 const struct ib_gid_attr *sgid_attr = attr->grh.sgid_attr; in rxe_av_fill_ip_info() local
80 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); in rxe_av_fill_ip_info()
84 ibtype = rdma_gid_attr_network_type(sgid_attr); in rxe_av_fill_ip_info()
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c166 const struct ib_gid_attr *sgid_attr; in ocrdma_create_ah() local
178 sgid_attr = attr->grh.sgid_attr; in ocrdma_create_ah()
179 status = rdma_read_gid_l2_fields(sgid_attr, &vlan_tag, NULL); in ocrdma_create_ah()
188 ah->hdr_type = rdma_gid_attr_network_type(sgid_attr); in ocrdma_create_ah()
190 status = set_av_attr(dev, ah, attr, &sgid_attr->gid, pd->id, in ocrdma_create_ah()
Docrdma_hw.c2494 const struct ib_gid_attr *sgid_attr; in ocrdma_set_av_params() local
2523 sgid_attr = ah_attr->grh.sgid_attr; in ocrdma_set_av_params()
2524 status = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, &mac_addr[0]); in ocrdma_set_av_params()
2529 memcpy(&cmd->params.sgid[0], &sgid_attr->gid.raw[0], in ocrdma_set_av_params()
2538 hdr_type = rdma_gid_attr_network_type(sgid_attr); in ocrdma_set_av_params()
2540 rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); in ocrdma_set_av_params()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dah.c38 enum ib_gid_type gid_type = ah_attr->grh.sgid_attr->gid_type; in mlx5_ah_get_udp_sport()
48 ah_attr->grh.sgid_attr); in mlx5_ah_get_udp_sport()
77 gid_type = ah_attr->grh.sgid_attr->gid_type; in create_ib_ah()
Dqp.c3233 (grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) && in mlx5_set_path()
3239 gid_type = ah->grh.sgid_attr->gid_type; in mlx5_set_path()
/kernel/linux/linux-5.10/include/rdma/
Dib_cm.h217 const struct ib_gid_attr *sgid_attr; member
238 const struct ib_gid_attr *sgid_attr; member
527 const struct ib_gid_attr *sgid_attr; member
Dib_addr.h43 const struct ib_gid_attr *sgid_attr; member
Dib_sa.h525 const struct ib_gid_attr *sgid_attr);
Dib_verbs.h757 const struct ib_gid_attr *sgid_attr; member
1546 const struct ib_gid_attr *sgid_attr; member
4504 grh->sgid_attr = NULL; in rdma_ah_set_grh()
4510 const struct ib_gid_attr *sgid_attr);
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dqedr_roce_cm.c390 const struct ib_gid_attr *sgid_attr = grh->sgid_attr; in qedr_gsi_build_header() local
400 rc = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, NULL); in qedr_gsi_build_header()
411 has_udp = (sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP); in qedr_gsi_build_header()
416 } else if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { in qedr_gsi_build_header()
464 memcpy(&udh->grh.source_gid.raw, sgid_attr->gid.raw, in qedr_gsi_build_header()
475 ipv4_addr = qedr_get_ipv4_from_gid(sgid_attr->gid.raw); in qedr_gsi_build_header()
Dverbs.c1143 gid_attr = grh->sgid_attr; in get_gid_info_from_table()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dah.c100 gid_attr = ah_attr->grh.sgid_attr; in create_iboe_ah()
175 slave_attr.grh.sgid_attr = NULL; in mlx4_ib_create_ah_slave()
Dqp.c1758 mlx4_ib_gid_index_to_real_index(dev, grh->sgid_attr); in _mlx4_set_path()
2264 gid_attr = attr->ah_attr.grh.sgid_attr; in __mlx4_ib_modify_qp()
3076 ah->ibah.sgid_attr->gid; in build_mlx_header()
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c641 const struct ib_gid_attr *sgid_attr; in bnxt_re_create_ah() local
658 sgid_attr = grh->sgid_attr; in bnxt_re_create_ah()
662 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_create_ah()
671 nw_type = rdma_gid_attr_network_type(sgid_attr); in bnxt_re_create_ah()
1896 const struct ib_gid_attr *sgid_attr; in bnxt_re_modify_qp() local
1909 sgid_attr = grh->sgid_attr; in bnxt_re_modify_qp()
1913 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_modify_qp()
1922 rc = rdma_read_gid_l2_fields(sgid_attr, NULL, in bnxt_re_modify_qp()
1927 nw_type = rdma_gid_attr_network_type(sgid_attr); in bnxt_re_modify_qp()
2130 const struct ib_gid_attr *sgid_attr = ah->ib_ah.sgid_attr; in bnxt_re_build_qp1_send_v2() local
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_ah.c81 ret = rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, in hns_roce_create_ah()
Dhns_roce_device.h1139 return grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP ? in get_tclass()
Dhns_roce_hw_v2.c4426 gid_attr = attr->ah_attr.grh.sgid_attr; in hns_roce_v2_set_path()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_av.c284 header->grh.source_gid = ah->ibah.sgid_attr->gid; in mthca_read_ah()