Home
last modified time | relevance | path

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

12

/drivers/infiniband/hw/mlx4/
Dah.c42 int mlx4_ib_resolve_grh(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah_attr, in mlx4_ib_resolve_grh() argument
49 memcpy(&in6, ah_attr->grh.dgid.raw, sizeof in6); in mlx4_ib_resolve_grh()
61 static struct ib_ah *create_ib_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr, in create_ib_ah() argument
66 ah->av.ib.port_pd = cpu_to_be32(to_mpd(pd)->pdn | (ah_attr->port_num << 24)); in create_ib_ah()
67 ah->av.ib.g_slid = ah_attr->src_path_bits; in create_ib_ah()
68 if (ah_attr->ah_flags & IB_AH_GRH) { in create_ib_ah()
70 ah->av.ib.gid_index = ah_attr->grh.sgid_index; in create_ib_ah()
71 ah->av.ib.hop_limit = ah_attr->grh.hop_limit; in create_ib_ah()
73 cpu_to_be32((ah_attr->grh.traffic_class << 20) | in create_ib_ah()
74 ah_attr->grh.flow_label); in create_ib_ah()
[all …]
Dmad.c188 struct ib_ah_attr ah_attr; in update_sm_ah() local
194 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
195 ah_attr.dlid = lid; in update_sm_ah()
196 ah_attr.sl = sl; in update_sm_ah()
197 ah_attr.port_num = port_num; in update_sm_ah()
200 &ah_attr); in update_sm_ah()
1184 struct ib_ah_attr ah_attr; in mlx4_ib_multiplex_mad() local
1262 mlx4_ib_query_ah(&ah.ibah, &ah_attr); in mlx4_ib_multiplex_mad()
1263 if ((ah_attr.ah_flags & IB_AH_GRH) && in mlx4_ib_multiplex_mad()
1264 (ah_attr.grh.sgid_index != slave)) { in mlx4_ib_multiplex_mad()
[all …]
Dmcg.c208 struct ib_ah_attr ah_attr; in send_mad_to_wire() local
216 mlx4_ib_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr); in send_mad_to_wire()
219 IB_QPT_GSI, 0, 1, IB_QP1_QKEY, &ah_attr, mad); in send_mad_to_wire()
228 struct ib_ah_attr ah_attr; in send_mad_to_slave() local
234 ib_query_ah(dev->sm_ah[ctx->port - 1], &ah_attr); in send_mad_to_slave()
241 wc.slid = ah_attr.dlid; /* opensm lid */ in send_mad_to_slave()
Dmlx4_ib.h615 struct ib_ah *mlx4_ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
616 int mlx4_ib_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr);
666 int mlx4_ib_resolve_grh(struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah_attr,
/drivers/infiniband/hw/ehca/
Dehca_av.c88 struct ib_ah *ehca_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) in ehca_create_ah() argument
98 pd, ah_attr); in ehca_create_ah()
102 av->av.sl = ah_attr->sl; in ehca_create_ah()
103 av->av.dlid = ah_attr->dlid; in ehca_create_ah()
104 av->av.slid_path_bits = ah_attr->src_path_bits; in ehca_create_ah()
108 if (ehca_calc_ipd(shca, ah_attr->port_num, in ehca_create_ah()
109 ah_attr->static_rate, &ipd)) { in ehca_create_ah()
117 av->av.lnh = ah_attr->ah_flags; in ehca_create_ah()
120 ah_attr->grh.traffic_class); in ehca_create_ah()
122 ah_attr->grh.flow_label); in ehca_create_ah()
[all …]
Dehca_qp.c1487 mqpcb->dlid = attr->ah_attr.dlid; in internal_modify_qp()
1489 mqpcb->source_path_bits = attr->ah_attr.src_path_bits; in internal_modify_qp()
1491 mqpcb->service_level = attr->ah_attr.sl; in internal_modify_qp()
1495 attr->ah_attr.static_rate, in internal_modify_qp()
1512 if (attr->ah_attr.ah_flags == IB_AH_GRH) { in internal_modify_qp()
1515 mqpcb->source_gid_idx = attr->ah_attr.grh.sgid_index; in internal_modify_qp()
1521 attr->ah_attr.grh.dgid.raw[cnt]; in internal_modify_qp()
1524 mqpcb->flow_label = attr->ah_attr.grh.flow_label; in internal_modify_qp()
1526 mqpcb->hop_limit = attr->ah_attr.grh.hop_limit; in internal_modify_qp()
1528 mqpcb->traffic_class = attr->ah_attr.grh.traffic_class; in internal_modify_qp()
[all …]
Dehca_iverbs.h69 struct ib_ah *ehca_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr);
71 int ehca_modify_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
73 int ehca_query_ah(struct ib_ah *ah, struct ib_ah_attr *ah_attr);
/drivers/infiniband/hw/qib/
Dqib_ud.c54 struct ib_ah_attr *ah_attr; in qib_ud_loopback() local
72 ah_attr = &to_iah(swqe->wr.wr.ud.ah)->attr; in qib_ud_loopback()
83 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback()
86 ah_attr->sl, in qib_ud_loopback()
89 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
107 lid = ppd->lid | (ah_attr->src_path_bits & in qib_ud_loopback()
110 ah_attr->sl, in qib_ud_loopback()
113 cpu_to_be16(ah_attr->dlid)); in qib_ud_loopback()
159 if (ah_attr->ah_flags & IB_AH_GRH) { in qib_ud_loopback()
160 qib_copy_sge(&qp->r_sge, &ah_attr->grh, in qib_ud_loopback()
[all …]
Dqib_verbs.c1785 int qib_check_ah(struct ib_device *ibdev, struct ib_ah_attr *ah_attr) in qib_check_ah() argument
1788 if (ah_attr->dlid >= QIB_MULTICAST_LID_BASE && in qib_check_ah()
1789 ah_attr->dlid != QIB_PERMISSIVE_LID && in qib_check_ah()
1790 !(ah_attr->ah_flags & IB_AH_GRH)) in qib_check_ah()
1792 if ((ah_attr->ah_flags & IB_AH_GRH) && in qib_check_ah()
1793 ah_attr->grh.sgid_index >= QIB_GUIDS_PER_PORT) in qib_check_ah()
1795 if (ah_attr->dlid == 0) in qib_check_ah()
1797 if (ah_attr->port_num < 1 || in qib_check_ah()
1798 ah_attr->port_num > ibdev->phys_port_cnt) in qib_check_ah()
1800 if (ah_attr->static_rate != IB_RATE_PORT_CURRENT && in qib_check_ah()
[all …]
Dqib_qp.c588 if (attr->ah_attr.dlid >= QIB_MULTICAST_LID_BASE) in qib_modify_qp()
590 if (qib_check_ah(qp->ibqp.device, &attr->ah_attr)) in qib_modify_qp()
768 qp->remote_ah_attr = attr->ah_attr; in qib_modify_qp()
769 qp->s_srate = attr->ah_attr.static_rate; in qib_modify_qp()
869 attr->ah_attr = qp->remote_ah_attr; in qib_query_qp()
/drivers/infiniband/hw/mthca/
Dmthca_av.c155 struct ib_ah_attr *ah_attr, in mthca_create_ah() argument
201 av->port_pd = cpu_to_be32(pd->pd_num | (ah_attr->port_num << 24)); in mthca_create_ah()
202 av->g_slid = ah_attr->src_path_bits; in mthca_create_ah()
203 av->dlid = cpu_to_be16(ah_attr->dlid); in mthca_create_ah()
205 mthca_get_rate(dev, ah_attr->static_rate, ah_attr->port_num); in mthca_create_ah()
206 av->sl_tclass_flowlabel = cpu_to_be32(ah_attr->sl << 28); in mthca_create_ah()
207 if (ah_attr->ah_flags & IB_AH_GRH) { in mthca_create_ah()
209 av->gid_index = (ah_attr->port_num - 1) * dev->limits.gid_table_len + in mthca_create_ah()
210 ah_attr->grh.sgid_index; in mthca_create_ah()
211 av->hop_limit = ah_attr->grh.hop_limit; in mthca_create_ah()
[all …]
Dmthca_mad.c78 struct ib_ah_attr ah_attr; in update_sm_ah() local
84 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
85 ah_attr.dlid = lid; in update_sm_ah()
86 ah_attr.sl = sl; in update_sm_ah()
87 ah_attr.port_num = port_num; in update_sm_ah()
90 &ah_attr); in update_sm_ah()
/drivers/infiniband/hw/ipath/
Dipath_ud.c54 struct ib_ah_attr *ah_attr; in ipath_ud_loopback() local
178 ah_attr = &to_iah(swqe->wr.wr.ud.ah)->attr; in ipath_ud_loopback()
179 if (ah_attr->ah_flags & IB_AH_GRH) { in ipath_ud_loopback()
180 ipath_copy_sge(&rsge, &ah_attr->grh, sizeof(struct ib_grh)); in ipath_ud_loopback()
220 (ah_attr->src_path_bits & in ipath_ud_loopback()
222 wc.sl = ah_attr->sl; in ipath_ud_loopback()
224 ah_attr->dlid & ((1 << dev->dd->ipath_lmc) - 1); in ipath_ud_loopback()
245 struct ib_ah_attr *ah_attr; in ipath_make_ud_req() local
283 ah_attr = &to_iah(wqe->wr.wr.ud.ah)->attr; in ipath_make_ud_req()
284 if (ah_attr->dlid >= IPATH_MULTICAST_LID_BASE) { in ipath_make_ud_req()
[all …]
Dipath_qp.c470 if (attr->ah_attr.dlid == 0 || in ipath_modify_qp()
471 attr->ah_attr.dlid >= IPATH_MULTICAST_LID_BASE) in ipath_modify_qp()
474 if ((attr->ah_attr.ah_flags & IB_AH_GRH) && in ipath_modify_qp()
475 (attr->ah_attr.grh.sgid_index > 1)) in ipath_modify_qp()
568 qp->remote_ah_attr = attr->ah_attr; in ipath_modify_qp()
569 qp->s_dmult = ipath_ib_rate_to_mult(attr->ah_attr.static_rate); in ipath_modify_qp()
640 attr->ah_attr = qp->remote_ah_attr; in ipath_query_qp()
Dipath_verbs.c1763 struct ib_ah_attr *ah_attr) in ipath_create_ah() argument
1771 if (ah_attr->dlid >= IPATH_MULTICAST_LID_BASE && in ipath_create_ah()
1772 ah_attr->dlid != IPATH_PERMISSIVE_LID && in ipath_create_ah()
1773 !(ah_attr->ah_flags & IB_AH_GRH)) { in ipath_create_ah()
1778 if (ah_attr->dlid == 0) { in ipath_create_ah()
1783 if (ah_attr->port_num < 1 || in ipath_create_ah()
1784 ah_attr->port_num > pd->device->phys_port_cnt) { in ipath_create_ah()
1807 ah->attr = *ah_attr; in ipath_create_ah()
1808 ah->attr.static_rate = ipath_ib_rate_to_mult(ah_attr->static_rate); in ipath_create_ah()
1837 static int ipath_query_ah(struct ib_ah *ibah, struct ib_ah_attr *ah_attr) in ipath_query_ah() argument
[all …]
/drivers/infiniband/core/
Dverbs.c169 struct ib_ah *ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) in ib_create_ah() argument
173 ah = pd->device->create_ah(pd, ah_attr); in ib_create_ah()
187 struct ib_grh *grh, struct ib_ah_attr *ah_attr) in ib_init_ah_from_wc() argument
193 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_from_wc()
194 ah_attr->dlid = wc->slid; in ib_init_ah_from_wc()
195 ah_attr->sl = wc->sl; in ib_init_ah_from_wc()
196 ah_attr->src_path_bits = wc->dlid_path_bits; in ib_init_ah_from_wc()
197 ah_attr->port_num = port_num; in ib_init_ah_from_wc()
200 ah_attr->ah_flags = IB_AH_GRH; in ib_init_ah_from_wc()
201 ah_attr->grh.dgid = grh->sgid; in ib_init_ah_from_wc()
[all …]
Dsa_query.c398 struct ib_ah_attr ah_attr; in update_sm_ah() local
419 memset(&ah_attr, 0, sizeof ah_attr); in update_sm_ah()
420 ah_attr.dlid = port_attr.sm_lid; in update_sm_ah()
421 ah_attr.sl = port_attr.sm_sl; in update_sm_ah()
422 ah_attr.port_num = port->port_num; in update_sm_ah()
424 new_ah->ah = ib_create_ah(port->agent->qp->pd, &ah_attr); in update_sm_ah()
529 struct ib_sa_path_rec *rec, struct ib_ah_attr *ah_attr) in ib_init_ah_from_path() argument
535 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_from_path()
536 ah_attr->dlid = be16_to_cpu(rec->dlid); in ib_init_ah_from_path()
537 ah_attr->sl = rec->sl; in ib_init_ah_from_path()
[all …]
Duser_mad.c232 struct ib_ah_attr ah_attr; in recv_handler() local
236 &ah_attr); in recv_handler()
238 packet->mad.hdr.gid_index = ah_attr.grh.sgid_index; in recv_handler()
239 packet->mad.hdr.hop_limit = ah_attr.grh.hop_limit; in recv_handler()
240 packet->mad.hdr.traffic_class = ah_attr.grh.traffic_class; in recv_handler()
241 memcpy(packet->mad.hdr.gid, &ah_attr.grh.dgid, 16); in recv_handler()
242 packet->mad.hdr.flow_label = cpu_to_be32(ah_attr.grh.flow_label); in recv_handler()
443 struct ib_ah_attr ah_attr; in ib_umad_write() local
481 memset(&ah_attr, 0, sizeof ah_attr); in ib_umad_write()
482 ah_attr.dlid = be16_to_cpu(packet->mad.hdr.lid); in ib_umad_write()
[all …]
Dmulticast.c721 struct ib_ah_attr *ah_attr) in ib_init_ah_from_mcmember() argument
731 memset(ah_attr, 0, sizeof *ah_attr); in ib_init_ah_from_mcmember()
732 ah_attr->dlid = be16_to_cpu(rec->mlid); in ib_init_ah_from_mcmember()
733 ah_attr->sl = rec->sl; in ib_init_ah_from_mcmember()
734 ah_attr->port_num = port_num; in ib_init_ah_from_mcmember()
735 ah_attr->static_rate = rec->rate; in ib_init_ah_from_mcmember()
737 ah_attr->ah_flags = IB_AH_GRH; in ib_init_ah_from_mcmember()
738 ah_attr->grh.dgid = rec->mgid; in ib_init_ah_from_mcmember()
740 ah_attr->grh.sgid_index = (u8) gid_index; in ib_init_ah_from_mcmember()
741 ah_attr->grh.flow_label = be32_to_cpu(rec->flow_label); in ib_init_ah_from_mcmember()
[all …]
Duverbs_cmd.c1838 memcpy(resp.dest.dgid, attr->ah_attr.grh.dgid.raw, 16); in ib_uverbs_query_qp()
1839 resp.dest.flow_label = attr->ah_attr.grh.flow_label; in ib_uverbs_query_qp()
1840 resp.dest.sgid_index = attr->ah_attr.grh.sgid_index; in ib_uverbs_query_qp()
1841 resp.dest.hop_limit = attr->ah_attr.grh.hop_limit; in ib_uverbs_query_qp()
1842 resp.dest.traffic_class = attr->ah_attr.grh.traffic_class; in ib_uverbs_query_qp()
1843 resp.dest.dlid = attr->ah_attr.dlid; in ib_uverbs_query_qp()
1844 resp.dest.sl = attr->ah_attr.sl; in ib_uverbs_query_qp()
1845 resp.dest.src_path_bits = attr->ah_attr.src_path_bits; in ib_uverbs_query_qp()
1846 resp.dest.static_rate = attr->ah_attr.static_rate; in ib_uverbs_query_qp()
1847 resp.dest.is_global = !!(attr->ah_attr.ah_flags & IB_AH_GRH); in ib_uverbs_query_qp()
[all …]
Duverbs_marshall.c74 ib_copy_ah_attr_to_user(&dst->ah_attr, &src->ah_attr); in ib_copy_qp_attr_to_user()
Dmad_rmpp.c840 struct ib_ah_attr ah_attr; in init_newwin() local
855 if (ib_query_ah(mad_send_wr->send_buf.ah, &ah_attr)) in init_newwin()
858 if (rmpp_recv->slid == ah_attr.dlid) { in init_newwin()
Dcm.c177 struct ib_ah_attr ah_attr; member
260 ah = ib_create_ah(mad_agent->qp->pd, &cm_id_priv->av.ah_attr); in cm_alloc_msg()
346 grh, &av->ah_attr); in cm_init_av_for_response()
377 &av->ah_attr); in cm_init_av_by_path()
3505 qp_attr->ah_attr = cm_id_priv->av.ah_attr; in cm_init_qp_rtr_attr()
3517 if (cm_id_priv->alt_av.ah_attr.dlid) { in cm_init_qp_rtr_attr()
3522 qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; in cm_init_qp_rtr_attr()
3571 if (cm_id_priv->alt_av.ah_attr.dlid) { in cm_init_qp_rts_attr()
3580 qp_attr->alt_ah_attr = cm_id_priv->alt_av.ah_attr; in cm_init_qp_rts_attr()
/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c1244 memcpy(&qp_attr->ah_attr.grh.dgid, &params.dgid[0], in ocrdma_query_qp()
1246 qp_attr->ah_attr.grh.flow_label = params.rnt_rc_sl_fl & in ocrdma_query_qp()
1248 qp_attr->ah_attr.grh.sgid_index = qp->sgid_idx; in ocrdma_query_qp()
1249 qp_attr->ah_attr.grh.hop_limit = (params.hop_lmt_rq_psn & in ocrdma_query_qp()
1252 qp_attr->ah_attr.grh.traffic_class = (params.tclass_sq_psn & in ocrdma_query_qp()
1256 qp_attr->ah_attr.ah_flags = IB_AH_GRH; in ocrdma_query_qp()
1257 qp_attr->ah_attr.port_num = 1; in ocrdma_query_qp()
1258 qp_attr->ah_attr.sl = (params.rnt_rc_sl_fl & in ocrdma_query_qp()
1273 qp_attr->ah_attr.src_path_bits = 0; in ocrdma_query_qp()
1274 qp_attr->ah_attr.static_rate = 0; in ocrdma_query_qp()
Docrdma_hw.c2140 struct ib_ah_attr *ah_attr = &attrs->ah_attr; in ocrdma_set_av_params() local
2144 if ((ah_attr->ah_flags & IB_AH_GRH) == 0) in ocrdma_set_av_params()
2147 (ah_attr->grh.traffic_class << OCRDMA_QP_PARAMS_TCLASS_SHIFT); in ocrdma_set_av_params()
2149 (ah_attr->grh.flow_label & OCRDMA_QP_PARAMS_FLOW_LABEL_MASK); in ocrdma_set_av_params()
2151 (ah_attr->grh.hop_limit << OCRDMA_QP_PARAMS_HOP_LMT_SHIFT); in ocrdma_set_av_params()
2153 memcpy(&cmd->params.dgid[0], &ah_attr->grh.dgid.raw[0], in ocrdma_set_av_params()
2156 ah_attr->grh.sgid_index, &sgid); in ocrdma_set_av_params()
2157 qp->sgid_idx = ah_attr->grh.sgid_index; in ocrdma_set_av_params()
2159 ocrdma_resolve_dgid(qp->dev, &ah_attr->grh.dgid, &mac_addr[0]); in ocrdma_set_av_params()

12