Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/infiniband/hw/mlx5/
H 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 …]
/openbmc/linux/drivers/infiniband/hw/mlx4/
H 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 …]
H 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 …]
/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_ah.c42 u32 fl = ah_attr->grh.flow_label; in get_ah_udp_sport()
57 struct rdma_ah_attr *ah_attr = init_attr->ah_attr; in hns_roce_create_ah() local
67 ah->av.port = rdma_ah_get_port_num(ah_attr); in hns_roce_create_ah()
70 if (rdma_ah_get_static_rate(ah_attr)) in hns_roce_create_ah()
75 ah->av.udp_sport = get_ah_udp_sport(ah_attr); in hns_roce_create_ah()
78 ah->av.sl = rdma_ah_get_sl(ah_attr); in hns_roce_create_ah()
107 memset(ah_attr, 0, sizeof(*ah_attr)); in hns_roce_query_ah()
109 rdma_ah_set_sl(ah_attr, ah->av.sl); in hns_roce_query_ah()
110 rdma_ah_set_port_num(ah_attr, ah->av.port); in hns_roce_query_ah()
112 rdma_ah_set_grh(ah_attr, NULL, ah->av.flowlabel, in hns_roce_query_ah()
[all …]
/openbmc/linux/drivers/infiniband/sw/rdmavt/
H 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 …]
H 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);
/openbmc/linux/drivers/infiniband/core/
H 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()
109 struct rdma_ah_attr *ah_attr, in rdma_lag_get_ah_roce_slave() argument
115 if (!(ah_attr->type == RDMA_AH_ATTR_TYPE_ROCE && in rdma_lag_get_ah_roce_slave()
[all …]
H 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()
763 ah_attr->roce.dmac); in ib_resolve_unicast_gid_dmac()
768 ah_attr->roce.dmac, in ib_resolve_unicast_gid_dmac()
802 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_attr_from_wc()
920 struct rdma_ah_attr ah_attr; in ib_create_ah_from_wc() local
1778 &attr->ah_attr); in _ib_modify_qp()
[all …]
H 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()
H 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 …]
H A Duser_mad.c274 struct rdma_ah_attr ah_attr; in recv_handler() local
281 &ah_attr); in recv_handler()
285 grh = rdma_ah_read_grh(&ah_attr); in recv_handler()
291 rdma_destroy_ah_attr(&ah_attr); in recv_handler()
514 struct rdma_ah_attr ah_attr; in ib_umad_write() local
555 memset(&ah_attr, 0, sizeof ah_attr); in ib_umad_write()
556 ah_attr.type = rdma_ah_find_type(agent->device, in ib_umad_write()
559 rdma_ah_set_sl(&ah_attr, packet->mad.hdr.sl); in ib_umad_write()
561 rdma_ah_set_port_num(&ah_attr, file->port->port_num); in ib_umad_write()
563 rdma_ah_set_grh(&ah_attr, NULL, in ib_umad_write()
[all …]
H 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()
H A Dcm.c178 struct rdma_ah_attr ah_attr; member
456 rdma_move_ah_attr(&av->ah_attr, ah_attr); in cm_init_av_for_lap()
466 grh, &av->ah_attr); in cm_init_av_for_response()
556 rdma_move_ah_attr(&dest->ah_attr, &src->ah_attr); in cm_move_av_from_path()
562 rdma_destroy_ah_attr(&av->ah_attr); in cm_destroy_av()
2169 cm_id_priv->av.ah_attr.roce.dmac); in cm_req_handler()
3305 struct rdma_ah_attr ah_attr; in cm_lap_handler() local
3339 &ah_attr); in cm_lap_handler()
3345 rdma_destroy_ah_attr(&ah_attr); in cm_lap_handler()
3351 &ah_attr, &cm_id_priv->av); in cm_lap_handler()
[all …]
/openbmc/linux/drivers/infiniband/hw/qib/
H 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 …]
/openbmc/linux/drivers/infiniband/hw/hfi1/
H 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 …]
H A Dipoib_tx.c27 struct rdma_ah_attr *ah_attr; member
263 struct rdma_ah_attr *ah_attr = txp->ah_attr; in hfi1_ipoib_build_ib_tx_headers() local
285 if (rdma_ah_get_ah_flags(ah_attr) & IB_AH_GRH) { in hfi1_ipoib_build_ib_tx_headers()
290 rdma_ah_read_grh(ah_attr), in hfi1_ipoib_build_ib_tx_headers()
300 lrh0 |= (rdma_ah_get_sl(ah_attr) & 0xf) << 4; in hfi1_ipoib_build_ib_tx_headers()
303 dlid = opa_get_lid(rdma_ah_get_dlid(ah_attr), 9B); in hfi1_ipoib_build_ib_tx_headers()
310 lid |= rdma_ah_get_path_bits(ah_attr) & in hfi1_ipoib_build_ib_tx_headers()
591 txp.ah_attr = &ibah_to_rvtah(address)->attr; in hfi1_ipoib_send()
595 txp.flow.sc5 = txp.ibp->sl_to_sc[rdma_ah_get_sl(txp.ah_attr)]; in hfi1_ipoib_send()
/openbmc/linux/drivers/infiniband/hw/mthca/
H 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()
H 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()
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/
H 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()
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/
H 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()
/openbmc/linux/include/rdma/
H A Dlag.h20 struct rdma_ah_attr *ah_attr,
/openbmc/linux/drivers/infiniband/hw/ocrdma/
H A Docrdma_ah.h57 int ocrdma_query_ah(struct ib_ah *ah, struct rdma_ah_attr *ah_attr);
H 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()
/openbmc/linux/drivers/infiniband/hw/irdma/
H A Dverbs.c1253 attr->ah_attr.grh.sgid_attr; in irdma_modify_qp_roce()
1295 av->attrs = attr->ah_attr; in irdma_modify_qp_roce()
1330 attr->ah_attr.roce.dmac); in irdma_modify_qp_roce()
4290 struct rdma_ah_attr *ah_attr = attr->ah_attr; in irdma_setup_ah() local
4305 sgid_attr = ah_attr->grh.sgid_attr; in irdma_setup_ah()
4309 ah->av.attrs = *ah_attr; in irdma_setup_ah()
4313 if (ah_attr->ah_flags & IB_AH_GRH) { in irdma_setup_ah()
4519 memset(ah_attr, 0, sizeof(*ah_attr)); in irdma_query_ah()
4521 ah_attr->ah_flags = IB_AH_GRH; in irdma_query_ah()
4526 memcpy(&ah_attr->grh.dgid, &ah->dgid, in irdma_query_ah()
[all …]
/openbmc/linux/drivers/infiniband/hw/qedr/
H A Dqedr.h531 struct rdma_ah_attr *ah_attr, u8 *mac_addr) in qedr_get_dmac() argument
535 const struct ib_global_route *grh = rdma_ah_read_grh(ah_attr); in qedr_get_dmac()
545 dmac = rdma_ah_retrieve_dmac(ah_attr); in qedr_get_dmac()

123