Lines Matching refs:qp_attr

1917 int bnxt_re_modify_qp(struct ib_qp *ib_qp, struct ib_qp_attr *qp_attr,  in bnxt_re_modify_qp()  argument
1934 new_qp_state = qp_attr->qp_state; in bnxt_re_modify_qp()
1949 qp->qplib_qp.state = __from_ib_qp_state(qp_attr->qp_state); in bnxt_re_modify_qp()
1976 __from_ib_access_flags(qp_attr->qp_access_flags); in bnxt_re_modify_qp()
1985 qp->qplib_qp.pkey_index = qp_attr->pkey_index; in bnxt_re_modify_qp()
1989 qp->qplib_qp.qkey = qp_attr->qkey; in bnxt_re_modify_qp()
1993 rdma_ah_read_grh(&qp_attr->ah_attr); in bnxt_re_modify_qp()
2016 qp->qplib_qp.ah.sl = rdma_ah_get_sl(&qp_attr->ah_attr); in bnxt_re_modify_qp()
2018 qp_attr->ah_attr.roce.dmac); in bnxt_re_modify_qp()
2045 qp->qplib_qp.path_mtu = __from_ib_mtu(qp_attr->path_mtu); in bnxt_re_modify_qp()
2046 qp->qplib_qp.mtu = ib_mtu_enum_to_int(qp_attr->path_mtu); in bnxt_re_modify_qp()
2047 } else if (qp_attr->qp_state == IB_QPS_RTR) { in bnxt_re_modify_qp()
2058 qp->qplib_qp.timeout = qp_attr->timeout; in bnxt_re_modify_qp()
2063 qp->qplib_qp.retry_cnt = qp_attr->retry_cnt; in bnxt_re_modify_qp()
2068 qp->qplib_qp.rnr_retry = qp_attr->rnr_retry; in bnxt_re_modify_qp()
2073 qp->qplib_qp.min_rnr_timer = qp_attr->min_rnr_timer; in bnxt_re_modify_qp()
2077 qp->qplib_qp.rq.psn = qp_attr->rq_psn; in bnxt_re_modify_qp()
2083 qp->qplib_qp.max_rd_atomic = min_t(u32, qp_attr->max_rd_atomic, in bnxt_re_modify_qp()
2088 qp->qplib_qp.sq.psn = qp_attr->sq_psn; in bnxt_re_modify_qp()
2091 if (qp_attr->max_dest_rd_atomic > in bnxt_re_modify_qp()
2095 qp_attr->max_dest_rd_atomic, in bnxt_re_modify_qp()
2102 qp->qplib_qp.max_dest_rd_atomic = qp_attr->max_dest_rd_atomic; in bnxt_re_modify_qp()
2111 if ((qp_attr->cap.max_send_wr >= dev_attr->max_qp_wqes) || in bnxt_re_modify_qp()
2112 (qp_attr->cap.max_recv_wr >= dev_attr->max_qp_wqes) || in bnxt_re_modify_qp()
2113 (qp_attr->cap.max_send_sge >= dev_attr->max_qp_sges) || in bnxt_re_modify_qp()
2114 (qp_attr->cap.max_recv_sge >= dev_attr->max_qp_sges) || in bnxt_re_modify_qp()
2115 (qp_attr->cap.max_inline_data >= in bnxt_re_modify_qp()
2121 entries = roundup_pow_of_two(qp_attr->cap.max_send_wr); in bnxt_re_modify_qp()
2125 qp_attr->cap.max_send_wr; in bnxt_re_modify_qp()
2132 qp->qplib_qp.sq.max_sge = qp_attr->cap.max_send_sge; in bnxt_re_modify_qp()
2134 entries = roundup_pow_of_two(qp_attr->cap.max_recv_wr); in bnxt_re_modify_qp()
2138 qp_attr->cap.max_recv_wr; in bnxt_re_modify_qp()
2139 qp->qplib_qp.rq.max_sge = qp_attr->cap.max_recv_sge; in bnxt_re_modify_qp()
2147 qp->qplib_qp.dest_qpn = qp_attr->dest_qp_num; in bnxt_re_modify_qp()
2159 int bnxt_re_query_qp(struct ib_qp *ib_qp, struct ib_qp_attr *qp_attr, in bnxt_re_query_qp() argument
2179 qp_attr->qp_state = __to_ib_qp_state(qplib_qp->state); in bnxt_re_query_qp()
2180 qp_attr->cur_qp_state = __to_ib_qp_state(qplib_qp->cur_qp_state); in bnxt_re_query_qp()
2181 qp_attr->en_sqd_async_notify = qplib_qp->en_sqd_async_notify ? 1 : 0; in bnxt_re_query_qp()
2182 qp_attr->qp_access_flags = __to_ib_access_flags(qplib_qp->access); in bnxt_re_query_qp()
2183 qp_attr->pkey_index = qplib_qp->pkey_index; in bnxt_re_query_qp()
2184 qp_attr->qkey = qplib_qp->qkey; in bnxt_re_query_qp()
2185 qp_attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; in bnxt_re_query_qp()
2186 rdma_ah_set_grh(&qp_attr->ah_attr, NULL, qplib_qp->ah.flow_label, in bnxt_re_query_qp()
2190 rdma_ah_set_dgid_raw(&qp_attr->ah_attr, qplib_qp->ah.dgid.data); in bnxt_re_query_qp()
2191 rdma_ah_set_sl(&qp_attr->ah_attr, qplib_qp->ah.sl); in bnxt_re_query_qp()
2192 ether_addr_copy(qp_attr->ah_attr.roce.dmac, qplib_qp->ah.dmac); in bnxt_re_query_qp()
2193 qp_attr->path_mtu = __to_ib_mtu(qplib_qp->path_mtu); in bnxt_re_query_qp()
2194 qp_attr->timeout = qplib_qp->timeout; in bnxt_re_query_qp()
2195 qp_attr->retry_cnt = qplib_qp->retry_cnt; in bnxt_re_query_qp()
2196 qp_attr->rnr_retry = qplib_qp->rnr_retry; in bnxt_re_query_qp()
2197 qp_attr->min_rnr_timer = qplib_qp->min_rnr_timer; in bnxt_re_query_qp()
2198 qp_attr->rq_psn = qplib_qp->rq.psn; in bnxt_re_query_qp()
2199 qp_attr->max_rd_atomic = qplib_qp->max_rd_atomic; in bnxt_re_query_qp()
2200 qp_attr->sq_psn = qplib_qp->sq.psn; in bnxt_re_query_qp()
2201 qp_attr->max_dest_rd_atomic = qplib_qp->max_dest_rd_atomic; in bnxt_re_query_qp()
2204 qp_attr->dest_qp_num = qplib_qp->dest_qpn; in bnxt_re_query_qp()
2206 qp_attr->cap.max_send_wr = qp->qplib_qp.sq.max_wqe; in bnxt_re_query_qp()
2207 qp_attr->cap.max_send_sge = qp->qplib_qp.sq.max_sge; in bnxt_re_query_qp()
2208 qp_attr->cap.max_recv_wr = qp->qplib_qp.rq.max_wqe; in bnxt_re_query_qp()
2209 qp_attr->cap.max_recv_sge = qp->qplib_qp.rq.max_sge; in bnxt_re_query_qp()
2210 qp_attr->cap.max_inline_data = qp->qplib_qp.max_inline_data; in bnxt_re_query_qp()
2211 qp_init_attr->cap = qp_attr->cap; in bnxt_re_query_qp()
2654 struct ib_qp_attr qp_attr; in bnxt_ud_qp_hw_stall_workaround() local
2657 qp_attr.qp_state = IB_QPS_RTS; in bnxt_ud_qp_hw_stall_workaround()
2658 bnxt_re_modify_qp(&qp->ib_qp, &qp_attr, qp_attr_mask, NULL); in bnxt_ud_qp_hw_stall_workaround()