/illumos-gate/usr/src/uts/common/io/ib/ibtl/ |
H A D | ibtl_chan.c | 66 ibt_qp_alloc_attr_t qp_attr; in ibt_alloc_rc_channel() local 75 qp_attr.qp_alloc_flags = IBT_QP_NO_FLAGS; in ibt_alloc_rc_channel() 77 qp_attr.qp_alloc_flags |= IBT_QP_USER_MAP; in ibt_alloc_rc_channel() 80 qp_attr.qp_alloc_flags |= IBT_QP_DEFER_ALLOC; in ibt_alloc_rc_channel() 88 qp_attr.qp_alloc_flags |= IBT_QP_USES_SRQ; in ibt_alloc_rc_channel() 124 qp_attr.qp_scq_hdl = chan_attrs.rc_scq; in ibt_alloc_rc_channel() 125 qp_attr.qp_rcq_hdl = chan_attrs.rc_rcq; in ibt_alloc_rc_channel() 126 qp_attr.qp_pd_hdl = chan_attrs.rc_pd; in ibt_alloc_rc_channel() 127 qp_attr.qp_flags = chan_attrs.rc_flags; in ibt_alloc_rc_channel() 128 qp_attr.qp_srq_hdl = chan_attrs.rc_srq; in ibt_alloc_rc_channel() [all …]
|
H A D | ibtl_qp.c | 860 ibt_qp_query_attr_t qp_attr; in ibt_modify_qp() local 863 if (ibt_query_qp(ibt_qp, &qp_attr) == IBT_SUCCESS) in ibt_modify_qp() 865 qp_attr.qp_info.qp_state; in ibt_modify_qp() 891 ibt_qp_query_attr_t qp_attr; in ibt_migrate_path() local 905 if (ibt_query_qp(rc_chan, &qp_attr) == IBT_SUCCESS) { in ibt_migrate_path() 1058 ibt_qp_query_attr_t qp_attr; in ibt_recycle_ud() local 1070 retval = ibt_query_qp(ud_chan, &qp_attr); in ibt_recycle_ud() 1076 if (qp_attr.qp_info.qp_state != IBT_STATE_ERROR) { in ibt_recycle_ud() 1079 ud_chan, qp_attr.qp_info.qp_state); in ibt_recycle_ud() 1080 ud_chan->ch_current_state = qp_attr.qp_info.qp_state; in ibt_recycle_ud() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/ibtl/ |
H A D | ibvti.h | 134 ibt_qp_alloc_attr_t *qp_attr, ibt_chan_sizes_t *queue_sizes_p, 146 ibt_sqp_type_t type, ibt_qp_alloc_attr_t *qp_attr, 188 ibt_qp_info_t *qp_attr, ibt_queue_sizes_t *actual_sz);
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ucma/ |
H A D | sol_ucma.c | 1246 struct ib_qp_attr qp_attr; local 1258 qp_attr.qp_state = qp_attr_inp->qp_state; 1259 if ((ret = rdma_init_qp_attr(chanp->chan_rdma_id, &qp_attr, 1270 uverbs_qp_attr.qp_state = qp_attr.qp_state; 1271 uverbs_qp_attr.pkey_index = qp_attr.pkey_index; 1272 uverbs_qp_attr.port_num = qp_attr.port_num; 1273 uverbs_qp_attr.qp_access_flags = qp_attr.qp_access_flags; 1274 uverbs_qp_attr.qkey = qp_attr.qkey; 1275 uverbs_qp_attr.path_mtu = qp_attr.path_mtu; 1276 uverbs_qp_attr.dest_qp_num = qp_attr.dest_qp_num; [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_uverbs/ |
H A D | sol_uverbs_qp.c | 363 ibt_qp_alloc_attr_t qp_attr; in sol_uverbs_create_qp() local 373 (void) memset(&qp_attr, 0, sizeof (qp_attr)); in sol_uverbs_create_qp() 395 qp_attr.qp_alloc_flags = IBT_QP_USER_MAP; in sol_uverbs_create_qp() 398 qp_attr.qp_alloc_flags |= IBT_QP_USES_SRQ; in sol_uverbs_create_qp() 401 qp_attr.qp_flags = IBT_WR_SIGNALED; in sol_uverbs_create_qp() 403 qp_attr.qp_flags = IBT_ALL_SIGNALED; in sol_uverbs_create_qp() 450 qp_attr.qp_pd_hdl = upd->pd; in sol_uverbs_create_qp() 452 qp_attr.qp_srq_hdl = usrq->srq; in sol_uverbs_create_qp() 454 qp_attr.qp_scq_hdl = uscq->cq; in sol_uverbs_create_qp() 455 qp_attr.qp_rcq_hdl = urcq->cq; in sol_uverbs_create_qp() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_ibt.c | 799 ibt_qp_info_t qp_attr; in eib_ibt_chan_pkey() local 864 bzero(&qp_attr, sizeof (ibt_qp_info_t)); in eib_ibt_chan_pkey() 866 qp_attr.qp_trans = IBT_UD_SRV; in eib_ibt_chan_pkey() 867 qp_attr.qp_current_state = IBT_STATE_SQD; in eib_ibt_chan_pkey() 868 qp_attr.qp_state = IBT_STATE_SQD; in eib_ibt_chan_pkey() 869 qp_attr.qp_transport.ud.ud_pkey_ix = new_pkey_ix; in eib_ibt_chan_pkey() 879 IBT_CEP_SET_STATE | IBT_CEP_SET_PKEY_IX, &qp_attr, NULL); in eib_ibt_chan_pkey()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/ |
H A D | sol_cma.c | 2175 struct ib_qp_attr qp_attr; 2178 qp_attr.qp_state = IB_QPS_INIT; 2179 ret = rdma_init_qp_attr(&chanp->chan_rdma_cm, &qp_attr, &qp_attr_mask); 2183 ret = ib_modify_qp(qp, &qp_attr, qp_attr_mask); 2187 qp_attr.qp_state = IB_QPS_RTR; 2188 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE); 2192 qp_attr.qp_state = IB_QPS_RTS; 2193 qp_attr.sq_psn = 0; 2194 ret = ib_modify_qp(qp, &qp_attr, IB_QP_STATE | IB_QP_SQ_PSN); 2202 struct ib_qp_attr qp_attr; [all …]
|
H A D | sol_kverbs.c | 1587 qp_current_state(ibt_qp_query_attr_t *qp_attr) in qp_current_state() argument 1589 ASSERT(qp_attr->qp_info.qp_state != IBT_STATE_SQDRAIN); in qp_current_state() 1590 return (enum ib_qp_state)(qp_attr->qp_info.qp_state); in qp_current_state() 1643 ibt_qp_query_attr_t qp_attr; in ib_modify_qp() local 1672 bzero(&qp_attr, sizeof (ibt_qp_query_attr_t)); in ib_modify_qp() 1673 if ((rtn = ibt_query_qp(qp->ibt_qp, &qp_attr)) != IBT_SUCCESS) { in ib_modify_qp() 1684 qp_current_state(&qp_attr); in ib_modify_qp() 1763 modify_attr = qp_attr.qp_info; in ib_modify_qp()
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_sm.c | 484 ibt_qp_info_t *qp_attr); 7585 ibt_qp_query_attr_t qp_attr; in ibcm_sidr_req_ud_handler() local 7634 retval = ibt_query_qp(ud_ret_args.ud_channel, &qp_attr); in ibcm_sidr_req_ud_handler() 7641 } else if (qp_attr.qp_info.qp_trans != IBT_UD_SRV) { in ibcm_sidr_req_ud_handler() 7644 "QP", qp_attr.qp_info.qp_trans); in ibcm_sidr_req_ud_handler() 7649 ud_clnt_info.ud_qkey = qp_attr.qp_info.qp_transport.ud.ud_qkey; in ibcm_sidr_req_ud_handler() 7650 ud_clnt_info.ud_qpn = qp_attr.qp_qpn; in ibcm_sidr_req_ud_handler() 8722 ibt_cep_modify_flags_t flags, ibt_qp_info_t *qp_attr) in print_modify_qp() argument 8729 qp_attr->qp_transport.rc.rc_rdma_ra_in, in print_modify_qp() 8730 qp_attr->qp_transport.rc.rc_rdma_ra_out); in print_modify_qp() [all …]
|
H A D | ibcm_path.c | 2580 ibt_qp_query_attr_t qp_attr; in ibt_get_alt_path() local 2611 retval = ibt_query_qp(rc_chan, &qp_attr); in ibt_get_alt_path() 2618 if (qp_attr.qp_info.qp_trans != IBT_RC_SRV) { in ibt_get_alt_path() 2625 qp_attr.qp_info.qp_transport.rc.rc_path.cep_adds_vect.av_dgid; in ibt_get_alt_path() 2627 qp_attr.qp_info.qp_transport.rc.rc_path.cep_adds_vect.av_sgid; in ibt_get_alt_path() 2628 prim_mtu = qp_attr.qp_info.qp_transport.rc.rc_path_mtu; in ibt_get_alt_path() 2876 qp_attr.qp_info.qp_transport.rc.rc_path.cep_pkey_ix, in ibt_get_alt_path() 2897 qp_attr.qp_info.qp_transport.rc.rc_path.cep_pkey_ix, mpr_req->P_Key, in ibt_get_alt_path() 2949 &qp_attr.qp_info.qp_transport.rc.rc_path, in ibt_get_alt_path() 4251 ibt_qp_query_attr_t qp_attr; in ibt_get_ip_alt_path() local [all …]
|
H A D | ibcm_ti.c | 1633 ibt_qp_query_attr_t qp_attr; in ibt_recycle_rc() local 1645 retval = ibt_query_qp(rc_chan, &qp_attr); in ibt_recycle_rc() 1650 if (qp_attr.qp_info.qp_trans != IBT_RC_SRV) in ibt_recycle_rc() 1653 if (qp_attr.qp_info.qp_state != IBT_STATE_ERROR) in ibt_recycle_rc() 1711 ibt_qp_query_attr_t qp_attr; in ibcm_process_rc_recycle_ret() local 1716 ibt_status = ibt_query_qp(ibcm_tq_recycle_arg->rc_chan, &qp_attr); in ibcm_process_rc_recycle_ret() 1758 qp_attr. qp_info.qp_transport.rc.rc_path.cep_pkey_ix; in ibcm_process_rc_recycle_ret() 4112 ibt_qp_query_attr_t qp_attr; in ibt_cm_ud_proceed() local 4139 retval = ibt_query_qp(ud_channel, &qp_attr); in ibt_cm_ud_proceed() 4141 (qp_attr.qp_info.qp_trans != IBT_UD_SRV)) { in ibt_cm_ud_proceed() [all …]
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rpcib.c | 1618 ibt_rc_chan_alloc_args_t qp_attr; in rib_svc_create_chan() local 1633 bzero(&qp_attr, sizeof (ibt_rc_chan_alloc_args_t)); in rib_svc_create_chan() 1634 qp_attr.rc_scq = hca->svc_scq->rib_cq_hdl; in rib_svc_create_chan() 1635 qp_attr.rc_rcq = hca->svc_rcq->rib_cq_hdl; in rib_svc_create_chan() 1636 qp_attr.rc_pd = hca->pd_hdl; in rib_svc_create_chan() 1637 qp_attr.rc_hca_port_num = port; in rib_svc_create_chan() 1638 qp_attr.rc_sizes.cs_sq_sgl = DSEG_MAX; in rib_svc_create_chan() 1639 qp_attr.rc_sizes.cs_rq_sgl = RQ_DSEG_MAX; in rib_svc_create_chan() 1640 qp_attr.rc_sizes.cs_sq = DEF_SQ_SIZE; in rib_svc_create_chan() 1641 qp_attr.rc_sizes.cs_rq = DEF_RQ_SIZE; in rib_svc_create_chan() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/rdma/ |
H A D | rdma_cm.h | 238 int rdma_init_qp_attr(struct rdma_cm_id *id, struct ib_qp_attr *qp_attr,
|
H A D | ib_verbs.h | 698 int ib_modify_qp(struct ib_qp *qp, struct ib_qp_attr *qp_attr,
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | ib_cm.c | 132 struct ib_qp_attr qp_attr; in rdsv3_ib_cm_connect_complete() local 203 rdsv3_ib_tune_rnr(ic, &qp_attr); in rdsv3_ib_cm_connect_complete() 205 qp_attr.qp_state = IB_QPS_RTS; in rdsv3_ib_cm_connect_complete() 206 err = ib_modify_qp(ic->i_cm_id->qp, &qp_attr, IB_QP_STATE); in rdsv3_ib_cm_connect_complete()
|