Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dah.c36 const struct rdma_ah_attr *ah_attr) in mlx5_ah_get_udp_sport() argument
48 ah_attr->grh.sgid_attr); in mlx5_ah_get_udp_sport()
56 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in create_ib_ah() local
77 gid_type = ah_attr->grh.sgid_attr->gid_type; in create_ib_ah()
79 memcpy(ah->av.rmac, ah_attr->roce.dmac, in create_ib_ah()
80 sizeof(ah_attr->roce.dmac)); in create_ib_ah()
97 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in mlx5_ib_create_ah() local
132 memset(ah_attr, 0, sizeof(*ah_attr)); in mlx5_ib_query_ah()
133 ah_attr->type = ibah->type; in mlx5_ib_query_ah()
137 rdma_ah_set_grh(ah_attr, NULL, in mlx5_ib_query_ah()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/mlx4/
A Dah.c100 gid_attr = ah_attr->grh.sgid_attr; in create_iboe_ah()
147 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in mlx4_ib_create_ah() local
163 create_ib_ah(ib_ah, ah_attr); in mlx4_ib_create_ah()
177 init_attr.ah_attr = &slave_attr; in mlx4_ib_create_ah_slave()
182 ah->type = ah_attr->type; in mlx4_ib_create_ah_slave()
202 memset(ah_attr, 0, sizeof *ah_attr); in mlx4_ib_query_ah()
203 ah_attr->type = ibah->type; in mlx4_ib_query_ah()
206 rdma_ah_set_dlid(ah_attr, 0); in mlx4_ib_query_ah()
207 rdma_ah_set_sl(ah_attr, in mlx4_ib_query_ah()
212 rdma_ah_set_sl(ah_attr, in mlx4_ib_query_ah()
[all …]
A Dmad.c192 struct rdma_ah_attr ah_attr; in update_sm_ah() local
198 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
200 rdma_ah_set_dlid(&ah_attr, lid); in update_sm_ah()
201 rdma_ah_set_sl(&ah_attr, sl); in update_sm_ah()
202 rdma_ah_set_port_num(&ah_attr, port_num); in update_sm_ah()
205 &ah_attr, 0); in update_sm_ah()
1468 struct rdma_ah_attr *ah_attr) in fill_in_real_sgid_index() argument
1484 struct rdma_ah_attr ah_attr; in mlx4_ib_multiplex_mad() local
1577 mlx4_ib_query_ah(&ah.ibah, &ah_attr); in mlx4_ib_multiplex_mad()
1580 dmac = rdma_ah_retrieve_dmac(&ah_attr); in mlx4_ib_multiplex_mad()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_ah.c40 u32 fl = ah_attr->grh.flow_label; in get_ah_udp_sport()
55 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in hns_roce_create_ah() local
64 ah->av.port = rdma_ah_get_port_num(ah_attr); in hns_roce_create_ah()
67 if (rdma_ah_get_static_rate(ah_attr)) in hns_roce_create_ah()
72 ah->av.udp_sport = get_ah_udp_sport(ah_attr); in hns_roce_create_ah()
73 ah->av.sl = rdma_ah_get_sl(ah_attr); in hns_roce_create_ah()
96 memset(ah_attr, 0, sizeof(*ah_attr)); in hns_roce_query_ah()
98 rdma_ah_set_sl(ah_attr, ah->av.sl); in hns_roce_query_ah()
99 rdma_ah_set_port_num(ah_attr, ah->av.port); in hns_roce_query_ah()
101 rdma_ah_set_grh(ah_attr, NULL, ah->av.flowlabel, in hns_roce_query_ah()
[all …]
/linux-6.3-rc2/drivers/infiniband/core/
A Dlag.c11 struct rdma_ah_attr *ah_attr, in rdma_build_skb() argument
53 memcpy(&iph->daddr, ah_attr->grh.dgid.raw + 12, in rdma_build_skb()
61 memcpy(&ip6h->flow_lbl, &ah_attr->grh.flow_label, in rdma_build_skb()
63 memcpy(&ip6h->saddr, ah_attr->grh.sgid_attr->gid.raw, in rdma_build_skb()
65 memcpy(&ip6h->daddr, ah_attr->grh.dgid.raw, in rdma_build_skb()
75 memcpy(eth->h_dest, ah_attr->roce.dmac, ETH_ALEN); in rdma_build_skb()
82 struct rdma_ah_attr *ah_attr, in rdma_get_xmit_slave_udp() argument
88 skb = rdma_build_skb(master, ah_attr, flags); in rdma_get_xmit_slave_udp()
110 struct rdma_ah_attr *ah_attr, in rdma_lag_get_ah_roce_slave() argument
116 if (!(ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE && in rdma_lag_get_ah_roce_slave()
[all …]
A Dverbs.c422 if (ah_attr->grh.sgid_attr) { in rdma_check_ah_attr()
427 if (ah_attr->grh.sgid_attr->index != ah_attr->grh.sgid_index || in rdma_check_ah_attr()
428 ah_attr->grh.sgid_attr->port_num != ah_attr->port_num) in rdma_check_ah_attr()
524 ah->type = ah_attr->type; in _rdma_create_ah()
526 init_attr.ah_attr = ah_attr; in _rdma_create_ah()
761 ah_attr->roce.dmac); in ib_resolve_unicast_gid_dmac()
766 ah_attr->roce.dmac, in ib_resolve_unicast_gid_dmac()
800 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_attr_from_wc()
918 struct rdma_ah_attr ah_attr; in ib_create_ah_from_wc() local
1776 &attr->ah_attr); in _ib_modify_qp()
[all …]
A Duverbs_marshall.c64 struct rdma_ah_attr *ah_attr) in ib_copy_ah_attr_to_user() argument
66 struct rdma_ah_attr *src = ah_attr; in ib_copy_ah_attr_to_user()
71 if ((ah_attr->type == RDMA_AH_ATTR_TYPE_OPA) && in ib_copy_ah_attr_to_user()
72 (rdma_ah_get_dlid(ah_attr) > be16_to_cpu(IB_LID_PERMISSIVE)) && in ib_copy_ah_attr_to_user()
73 (!rdma_ah_conv_opa_to_ib(device, &conv_ah, ah_attr))) in ib_copy_ah_attr_to_user()
116 ib_copy_ah_attr_to_user(device, &dst->ah_attr, &src->ah_attr); in ib_copy_qp_attr_to_user()
A Dsa_query.c1194 struct rdma_ah_attr *ah_attr, in init_ah_attr_grh_fields() argument
1232 struct rdma_ah_attr *ah_attr, in ib_init_ah_attr_from_path() argument
1237 memset(ah_attr, 0, sizeof(*ah_attr)); in ib_init_ah_attr_from_path()
1239 rdma_ah_set_sl(ah_attr, rec->sl); in ib_init_ah_attr_from_path()
1255 rdma_ah_set_path_bits(ah_attr, in ib_init_ah_attr_from_path()
1262 rec, ah_attr, gid_attr); in ib_init_ah_attr_from_path()
1269 struct rdma_ah_attr ah_attr; in alloc_mad() local
2046 struct rdma_ah_attr ah_attr; in update_sm_ah() local
2066 memset(&ah_attr, 0, sizeof(ah_attr)); in update_sm_ah()
2089 rdma_ah_set_subnet_prefix(&ah_attr, in update_sm_ah()
[all …]
A Duser_mad.c262 struct rdma_ah_attr ah_attr; in recv_handler() local
269 &ah_attr); in recv_handler()
273 grh = rdma_ah_read_grh(&ah_attr); in recv_handler()
279 rdma_destroy_ah_attr(&ah_attr); in recv_handler()
499 struct rdma_ah_attr ah_attr; in ib_umad_write() local
541 memset(&ah_attr, 0, sizeof ah_attr); in ib_umad_write()
542 ah_attr.type = rdma_ah_find_type(agent->device, in ib_umad_write()
545 rdma_ah_set_sl(&ah_attr, packet->mad.hdr.sl); in ib_umad_write()
547 rdma_ah_set_port_num(&ah_attr, file->port->port_num); in ib_umad_write()
549 rdma_ah_set_grh(&ah_attr, NULL, in ib_umad_write()
[all …]
A Dmulticast.c739 struct rdma_ah_attr *ah_attr) in ib_init_ah_from_mcmember() argument
756 memset(ah_attr, 0, sizeof(*ah_attr)); in ib_init_ah_from_mcmember()
757 ah_attr->type = rdma_ah_find_type(device, port_num); in ib_init_ah_from_mcmember()
759 rdma_ah_set_dlid(ah_attr, be16_to_cpu(rec->mlid)); in ib_init_ah_from_mcmember()
760 rdma_ah_set_sl(ah_attr, rec->sl); in ib_init_ah_from_mcmember()
761 rdma_ah_set_port_num(ah_attr, port_num); in ib_init_ah_from_mcmember()
762 rdma_ah_set_static_rate(ah_attr, rec->rate); in ib_init_ah_from_mcmember()
763 rdma_move_grh_sgid_attr(ah_attr, &rec->mgid, in ib_init_ah_from_mcmember()
A Dcm.c177 struct rdma_ah_attr ah_attr; member
455 rdma_move_ah_attr(&av->ah_attr, ah_attr); in cm_init_av_for_lap()
465 grh, &av->ah_attr); in cm_init_av_for_response()
555 rdma_move_ah_attr(&dest->ah_attr, &src->ah_attr); in cm_move_av_from_path()
561 rdma_destroy_ah_attr(&av->ah_attr); in cm_destroy_av()
2148 cm_id_priv->av.ah_attr.roce.dmac); in cm_req_handler()
3283 struct rdma_ah_attr ah_attr; in cm_lap_handler() local
3317 &ah_attr); in cm_lap_handler()
3323 rdma_destroy_ah_attr(&ah_attr); in cm_lap_handler()
3329 &ah_attr, &cm_id_priv->av); in cm_lap_handler()
[all …]
/linux-6.3-rc2/drivers/infiniband/sw/rdmavt/
A Dah.c21 struct rdma_ah_attr *ah_attr) in rvt_check_ah() argument
24 int port_num = rdma_ah_get_port_num(ah_attr); in rvt_check_ah()
27 u8 ah_flags = rdma_ah_get_ah_flags(ah_attr); in rvt_check_ah()
28 u8 static_rate = rdma_ah_get_static_rate(ah_attr); in rvt_check_ah()
43 return rdi->driver_f.check_ah(ibdev, ah_attr); in rvt_check_ah()
65 if (rvt_check_ah(ibah->device, init_attr->ah_attr)) in rvt_create_ah()
77 rdma_copy_ah_attr(&ah->attr, init_attr->ah_attr); in rvt_create_ah()
81 init_attr->ah_attr, ah); in rvt_create_ah()
117 if (rvt_check_ah(ibah->device, ah_attr)) in rvt_modify_ah()
120 ah->attr = *ah_attr; in rvt_modify_ah()
[all …]
A Dah.h14 int rvt_modify_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr);
15 int rvt_query_ah(struct ib_ah *ibah, struct rdma_ah_attr *ah_attr);
/linux-6.3-rc2/drivers/infiniband/hw/qib/
A Dqib_ud.c58 struct rdma_ah_attr *ah_attr; in qib_ud_loopback() local
84 ah_attr = rvt_get_swqe_ah_attr(swqe); in qib_ud_loopback()
98 rdma_ah_get_sl(ah_attr), in qib_ud_loopback()
210 wc.sl = rdma_ah_get_sl(ah_attr); in qib_ud_loopback()
235 struct rdma_ah_attr *ah_attr; in qib_make_ud_req() local
275 ah_attr = rvt_get_swqe_ah_attr(wqe); in qib_make_ud_req()
277 if (rdma_ah_get_dlid(ah_attr) != in qib_make_ud_req()
326 rdma_ah_read_grh(ah_attr), in qib_make_ud_req()
345 lrh0 |= rdma_ah_get_sl(ah_attr) << 4; in qib_make_ud_req()
357 lid |= rdma_ah_get_path_bits(ah_attr) & in qib_make_ud_req()
[all …]
/linux-6.3-rc2/drivers/infiniband/hw/hfi1/
A Dud.c37 struct rdma_ah_attr *ah_attr; in ud_loopback() local
66 ah_attr = rvt_get_swqe_ah_attr(swqe); in ud_loopback()
81 rdma_ah_get_sl(ah_attr), in ud_loopback()
83 slid, rdma_ah_get_dlid(ah_attr)); in ud_loopback()
212 wc.sl = rdma_ah_get_sl(ah_attr); in ud_loopback()
270 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_9B() local
277 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_9B()
337 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req_16B() local
349 ah_attr = rvt_get_swqe_ah_attr(wqe); in hfi1_make_ud_req_16B()
438 struct rdma_ah_attr *ah_attr; in hfi1_make_ud_req() local
[all …]
A Dipoib_tx.c27 struct rdma_ah_attr *ah_attr; member
262 struct rdma_ah_attr *ah_attr = txp->ah_attr; in hfi1_ipoib_build_ib_tx_headers() local
284 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in hfi1_ipoib_build_ib_tx_headers()
289 rdma_ah_read_grh(ah_attr), in hfi1_ipoib_build_ib_tx_headers()
299 lrh0 |= (rdma_ah_get_sl(ah_attr) & 0xf) << 4; in hfi1_ipoib_build_ib_tx_headers()
302 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); in hfi1_ipoib_build_ib_tx_headers()
309 lid |= rdma_ah_get_path_bits(ah_attr) & in hfi1_ipoib_build_ib_tx_headers()
590 txp.ah_attr = &ibah_to_rvtah(address)->attr; in hfi1_ipoib_send()
594 txp.flow.sc5 = txp.ibp->sl_to_sc[rdma_ah_get_sl(txp.ah_attr)]; in hfi1_ipoib_send()
/linux-6.3-rc2/drivers/infiniband/hw/mthca/
A Dmthca_av.c155 struct rdma_ah_attr *ah_attr, in mthca_create_ah() argument
200 (rdma_ah_get_port_num(ah_attr) << 24)); in mthca_create_ah()
201 av->g_slid = rdma_ah_get_path_bits(ah_attr); in mthca_create_ah()
202 av->dlid = cpu_to_be16(rdma_ah_get_dlid(ah_attr)); in mthca_create_ah()
204 mthca_get_rate(dev, rdma_ah_get_static_rate(ah_attr), in mthca_create_ah()
205 rdma_ah_get_port_num(ah_attr)); in mthca_create_ah()
206 av->sl_tclass_flowlabel = cpu_to_be32(rdma_ah_get_sl(ah_attr) << 28); in mthca_create_ah()
207 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in mthca_create_ah()
208 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); in mthca_create_ah()
211 av->gid_index = (rdma_ah_get_port_num(ah_attr) - 1) * in mthca_create_ah()
A Dmthca_mad.c79 struct rdma_ah_attr ah_attr; in update_sm_ah() local
85 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
86 ah_attr.type = rdma_ah_find_type(&dev->ib_dev, port_num); in update_sm_ah()
87 rdma_ah_set_dlid(&ah_attr, lid); in update_sm_ah()
88 rdma_ah_set_sl(&ah_attr, sl); in update_sm_ah()
89 rdma_ah_set_port_num(&ah_attr, port_num); in update_sm_ah()
92 &ah_attr, 0); in update_sm_ah()
A Dmthca_qp.c398 struct rdma_ah_attr *ah_attr, in to_rdma_ah_attr() argument
403 memset(ah_attr, 0, sizeof(*ah_attr)); in to_rdma_ah_attr()
407 ah_attr->type = rdma_ah_find_type(&dev->ib_dev, port_num); in to_rdma_ah_attr()
408 rdma_ah_set_port_num(ah_attr, port_num); in to_rdma_ah_attr()
410 rdma_ah_set_dlid(ah_attr, be16_to_cpu(path->rlid)); in to_rdma_ah_attr()
412 rdma_ah_set_path_bits(ah_attr, path->g_mylmc & 0x7f); in to_rdma_ah_attr()
413 rdma_ah_set_static_rate(ah_attr, in to_rdma_ah_attr()
420 rdma_ah_set_grh(ah_attr, NULL, in to_rdma_ah_attr()
426 rdma_ah_set_dgid_raw(ah_attr, path->rgid); in to_rdma_ah_attr()
477 to_rdma_ah_attr(dev, &qp_attr->ah_attr, &context->pri_path); in mthca_query_qp()
[all …]
/linux-6.3-rc2/drivers/infiniband/ulp/opa_vnic/
A Dopa_vnic_vema.c734 struct rdma_ah_attr ah_attr; in opa_vnic_vema_send_trap() local
760 memset(&ah_attr, 0, sizeof(ah_attr)); in opa_vnic_vema_send_trap()
761 ah_attr.type = rdma_ah_find_type(ibp, port->port_num); in opa_vnic_vema_send_trap()
762 rdma_ah_set_sl(&ah_attr, in opa_vnic_vema_send_trap()
764 rdma_ah_set_port_num(&ah_attr, port->port_num); in opa_vnic_vema_send_trap()
777 rdma_ah_set_dlid(&ah_attr, trap_lid); in opa_vnic_vema_send_trap()
778 ah = rdma_create_ah(port->mad_agent->qp->pd, &ah_attr, 0); in opa_vnic_vema_send_trap()
782 rdma_ah_get_dlid(&ah_attr), rdma_ah_get_sl(&ah_attr), in opa_vnic_vema_send_trap()
783 rdma_ah_get_port_num(&ah_attr)); in opa_vnic_vema_send_trap()
/linux-6.3-rc2/drivers/infiniband/hw/vmw_pvrdma/
A Dpvrdma_verbs.c515 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in pvrdma_create_ah() local
519 u32 port_num = rdma_ah_get_port_num(ah_attr); in pvrdma_create_ah()
521 if (!(rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH)) in pvrdma_create_ah()
524 grh = rdma_ah_read_grh(ah_attr); in pvrdma_create_ah()
525 if ((ah_attr->type != RDMA_AH_ATTR_TYPE_ROCE) || in pvrdma_create_ah()
533 ah->av.src_path_bits = rdma_ah_get_path_bits(ah_attr); in pvrdma_create_ah()
540 memcpy(ah->av.dmac, ah_attr->roce.dmac, ETH_ALEN); in pvrdma_create_ah()
/linux-6.3-rc2/include/rdma/
A Dlag.h20 struct rdma_ah_attr *ah_attr,
/linux-6.3-rc2/drivers/infiniband/hw/ocrdma/
A Docrdma_ah.h57 int ocrdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
A Docrdma.h528 struct rdma_ah_attr *ah_attr, u8 *mac_addr) in ocrdma_resolve_dmac() argument
532 memcpy(&in6, rdma_ah_read_grh(ah_attr)->dgid.raw, sizeof(in6)); in ocrdma_resolve_dmac()
538 memcpy(mac_addr, ah_attr->roce.dmac, ETH_ALEN); in ocrdma_resolve_dmac()
/linux-6.3-rc2/drivers/infiniband/hw/irdma/
A Dverbs.c1197 sgid_attr = attr->ah_attr.grh.sgid_attr; in irdma_modify_qp_roce()
1213 av->attrs = attr->ah_attr; in irdma_modify_qp_roce()
1252 attr->ah_attr.roce.dmac); in irdma_modify_qp_roce()
4228 struct rdma_ah_attr *ah_attr = attr->ah_attr; in irdma_setup_ah() local
4243 sgid_attr = ah_attr->grh.sgid_attr; in irdma_setup_ah()
4247 ah->av.attrs = *ah_attr; in irdma_setup_ah()
4251 if (ah_attr->ah_flags & IB_AH_GRH) { in irdma_setup_ah()
4454 memset(ah_attr, 0, sizeof(*ah_attr)); in irdma_query_ah()
4456 ah_attr->ah_flags = IB_AH_GRH; in irdma_query_ah()
4462 memcpy(&ah_attr->grh.dgid, &ah->dgid, in irdma_query_ah()
[all …]

Completed in 74 milliseconds

123