Home
last modified time | relevance | path

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

12

/linux/drivers/infiniband/core/
H A Dverbs.c459 if (grh->sgid_attr) in rdma_fill_sgid_attr()
462 sgid_attr = in rdma_fill_sgid_attr()
468 grh->sgid_attr = sgid_attr; in rdma_fill_sgid_attr()
538 if (ah->sgid_attr) in _rdma_create_ah()
756 const struct ib_gid_attr *sgid_attr = grh->sgid_attr; in ib_resolve_unicast_gid_dmac() local
841 sgid_attr); in ib_init_ah_attr_from_wc()
870 sgid_attr); in ib_init_ah_attr_from_wc()
898 attr->grh.sgid_attr = sgid_attr; in rdma_move_grh_sgid_attr()
954 ah->sgid_attr = rdma_update_sgid_attr(ah_attr, ah->sgid_attr); in rdma_modify_ah()
972 const struct ib_gid_attr *sgid_attr = ah->sgid_attr; in rdma_destroy_ah_user() local
[all …]
H A Dlag.c51 memcpy(&iph->saddr, ah_attr->grh.sgid_attr->gid.raw + 12, in rdma_build_skb()
63 memcpy(&ip6h->saddr, ah_attr->grh.sgid_attr->gid.raw, in rdma_build_skb()
73 rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, NULL, smac); in rdma_build_skb()
115 ah_attr->grh.sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP && in rdma_lag_get_ah_roce_slave()
120 master = rdma_read_gid_attr_ndev_rcu(ah_attr->grh.sgid_attr); in rdma_lag_get_ah_roce_slave()
H A Dcma.c712 if (IS_ERR(sgid_attr)) in cma_validate_port()
737 return sgid_attr; in cma_validate_port()
744 id_priv->id.route.addr.dev_addr.sgid_attr = sgid_attr; in cma_bind_sgid_attr()
784 if (!IS_ERR(sgid_attr)) { in cma_acquire_dev_by_src_ip()
832 if (IS_ERR(sgid_attr)) in cma_ib_acquire_dev()
833 return PTR_ERR(sgid_attr); in cma_ib_acquire_dev()
873 if (!IS_ERR(sgid_attr)) { in cma_iw_acquire_dev()
1656 sgid_attr = ib_event->param.sidr_req_rcvd.sgid_attr; in roce_get_net_dev_by_cm_event()
1658 if (!sgid_attr) in roce_get_net_dev_by_cm_event()
4230 rep->sgid_attr); in cma_sidr_rep_handler()
[all …]
H A Daddr.c526 ndev = rdma_read_gid_attr_ndev_rcu(addr->sgid_attr); in set_addr_netns_by_gid_rcu()
567 if (!addr->sgid_attr) { in addr_resolve()
743 dev_addr.sgid_attr = attr; in roce_resolve_route_from_path()
811 u8 *dmac, const struct ib_gid_attr *sgid_attr, in rdma_addr_find_l2_eth_by_grh() argument
827 dev_addr.sgid_attr = sgid_attr; in rdma_addr_find_l2_eth_by_grh()
H A Dmulticast.c741 const struct ib_gid_attr *sgid_attr; in ib_init_ah_from_mcmember() local
751 sgid_attr = rdma_find_gid_by_port(device, &rec->port_gid, in ib_init_ah_from_mcmember()
753 if (IS_ERR(sgid_attr)) in ib_init_ah_from_mcmember()
754 return PTR_ERR(sgid_attr); in ib_init_ah_from_mcmember()
766 sgid_attr); in ib_init_ah_from_mcmember()
H A Dcore_priv.h331 u8 *dmac, const struct ib_gid_attr *sgid_attr,
H A Dcm.c511 const struct ib_gid_attr *sgid_attr, in cm_init_av_by_path() argument
519 port = get_cm_port_from_path(path, sgid_attr); in cm_init_av_by_path()
541 &new_ah_attr, sgid_attr); in cm_init_av_by_path()
1839 param->ppath_sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; in cm_format_req_event()
2150 gid_attr = grh->sgid_attr; in cm_req_handler()
3502 ret = cm_init_av_by_path(param->path, param->sgid_attr, &av); in ib_send_cm_sidr_req()
3558 param->sgid_attr = rx_cm_id->av.ah_attr.grh.sgid_attr; in cm_format_sidr_req_event()
3735 param->sgid_attr = cm_id_priv->av.ah_attr.grh.sgid_attr; in cm_format_sidr_rep_event()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_av.c47 type = rdma_gid_attr_network_type(grh->sgid_attr); in chk_attr()
105 const struct ib_gid_attr *sgid_attr = attr->grh.sgid_attr; in rxe_av_fill_ip_info() local
109 rdma_gid2ip((struct sockaddr *)&av->sgid_addr, &sgid_attr->gid); in rxe_av_fill_ip_info()
113 ibtype = rdma_gid_attr_network_type(sgid_attr); in rxe_av_fill_ip_info()
/linux/drivers/infiniband/hw/ocrdma/
H A 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()
H A Docrdma_hw.c2490 const struct ib_gid_attr *sgid_attr; in ocrdma_set_av_params() local
2519 sgid_attr = ah_attr->grh.sgid_attr; in ocrdma_set_av_params()
2520 status = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, &mac_addr[0]); in ocrdma_set_av_params()
2525 memcpy(&cmd->params.sgid[0], &sgid_attr->gid.raw[0], in ocrdma_set_av_params()
2534 hdr_type = rdma_gid_attr_network_type(sgid_attr); in ocrdma_set_av_params()
2536 rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); in ocrdma_set_av_params()
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_ah.c87 if (ret && grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) in hns_roce_create_ah()
91 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) in hns_roce_create_ah()
106 ret = rdma_read_gid_l2_fields(ah_attr->grh.sgid_attr, in hns_roce_create_ah()
H A Dhns_roce_device.h1164 return grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP ? in get_tclass()
H A Dhns_roce_hw_v2.c4828 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE) in fill_cong_field()
4907 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) { in hns_roce_set_sl()
4914 grh->sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP) in hns_roce_set_sl()
4967 gid_attr = attr->ah_attr.grh.sgid_attr; in hns_roce_v2_set_path()
/linux/drivers/infiniband/hw/mlx5/
H A 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()
/linux/include/rdma/
H A Dib_cm.h217 const struct ib_gid_attr *sgid_attr; member
238 const struct ib_gid_attr *sgid_attr; member
523 const struct ib_gid_attr *sgid_attr; member
H A Dib_addr.h44 const struct ib_gid_attr *sgid_attr; member
H A Dib_sa.h503 const struct ib_gid_attr *sgid_attr);
H A Dib_verbs.h780 const struct ib_gid_attr *sgid_attr; member
1578 const struct ib_gid_attr *sgid_attr; member
4640 grh->sgid_attr = NULL; in rdma_ah_set_grh()
4646 const struct ib_gid_attr *sgid_attr);
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.c388 const struct ib_gid_attr *sgid_attr = grh->sgid_attr; in qedr_gsi_build_header() local
398 rc = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, NULL); in qedr_gsi_build_header()
409 has_udp = (sgid_attr->gid_type == IB_GID_TYPE_ROCE_UDP_ENCAP); in qedr_gsi_build_header()
414 } else if (ipv6_addr_v4mapped((struct in6_addr *)&sgid_attr->gid)) { in qedr_gsi_build_header()
462 memcpy(&udh->grh.source_gid.raw, sgid_attr->gid.raw, in qedr_gsi_build_header()
473 ipv4_addr = qedr_get_ipv4_from_gid(sgid_attr->gid.raw); in qedr_gsi_build_header()
/linux/drivers/infiniband/hw/mlx4/
H A 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()
H A Dqp.c1795 mlx4_ib_gid_index_to_real_index(dev, grh->sgid_attr); in _mlx4_set_path()
2301 gid_attr = attr->ah_attr.grh.sgid_attr; in __mlx4_ib_modify_qp()
3116 ah->ibah.sgid_attr->gid; in build_mlx_header()
/linux/drivers/infiniband/hw/bnxt_re/
H A Dib_verbs.c752 const struct ib_gid_attr *sgid_attr; in bnxt_re_create_ah() local
770 sgid_attr = grh->sgid_attr; in bnxt_re_create_ah()
774 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_create_ah()
783 nw_type = rdma_gid_attr_network_type(sgid_attr); in bnxt_re_create_ah()
2062 const struct ib_gid_attr *sgid_attr; in bnxt_re_modify_qp() local
2075 sgid_attr = grh->sgid_attr; in bnxt_re_modify_qp()
2079 ctx = rdma_read_gid_hw_context(sgid_attr); in bnxt_re_modify_qp()
2088 rc = rdma_read_gid_l2_fields(sgid_attr, NULL, in bnxt_re_modify_qp()
2300 const struct ib_gid_attr *sgid_attr = ah->ib_ah.sgid_attr; in bnxt_re_build_qp1_send_v2() local
2370 sizeof(sgid_attr->gid)); in bnxt_re_build_qp1_send_v2()
[all …]
/linux/drivers/infiniband/hw/irdma/
H A Dverbs.c1252 const struct ib_gid_attr *sgid_attr = in irdma_modify_qp_roce() local
1253 attr->ah_attr.grh.sgid_attr; in irdma_modify_qp_roce()
1274 ret = rdma_read_gid_l2_fields(sgid_attr, &vlan_id, in irdma_modify_qp_roce()
1278 ctx_info->user_pri = irdma_roce_get_vlan_prio(sgid_attr, in irdma_modify_qp_roce()
1298 av->net_type = rdma_gid_attr_network_type(sgid_attr); in irdma_modify_qp_roce()
4437 const struct ib_gid_attr *sgid_attr; in irdma_setup_ah() local
4451 sgid_attr = ah_attr->grh.sgid_attr; in irdma_setup_ah()
4453 rdma_gid2ip((struct sockaddr *)&sgid_addr, &sgid_attr->gid); in irdma_setup_ah()
4456 ah->av.net_type = rdma_gid_attr_network_type(sgid_attr); in irdma_setup_ah()
4491 err = rdma_read_gid_l2_fields(sgid_attr, &ah_info->vlan_tag, in irdma_setup_ah()
[all …]
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_av.c284 header->grh.source_gid = ah->ibah.sgid_attr->gid; in mthca_read_ah()
/linux/drivers/infiniband/hw/mana/
H A Dqp.c550 copy_in_reverse(req.ah_attr.src_addr, attr->ah_attr.grh.sgid_attr->gid.raw, in mana_ib_gd_modify_qp()
554 if (rdma_gid_attr_network_type(attr->ah_attr.grh.sgid_attr) == RDMA_NETWORK_IPV4) { in mana_ib_gd_modify_qp()

12