IB/ehca: Fix Small QP regressions
The new Small QP code had a few bugs that would also make it trigger for non-Small QPs. Fix them. Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
committed by
Roland Dreier
parent
18115f4537
commit
fecea0ab34
@@ -600,10 +600,12 @@ static struct ehca_qp *internal_create_qp(
|
||||
|
||||
if (EHCA_BMASK_GET(HCA_CAP_MINI_QP, shca->hca_cap)
|
||||
&& !(context && udata)) { /* no small QP support in userspace ATM */
|
||||
ehca_determine_small_queue(
|
||||
&parms.squeue, max_send_sge, is_llqp);
|
||||
ehca_determine_small_queue(
|
||||
&parms.rqueue, max_recv_sge, is_llqp);
|
||||
if (HAS_SQ(my_qp))
|
||||
ehca_determine_small_queue(
|
||||
&parms.squeue, max_send_sge, is_llqp);
|
||||
if (HAS_RQ(my_qp))
|
||||
ehca_determine_small_queue(
|
||||
&parms.rqueue, max_recv_sge, is_llqp);
|
||||
parms.qp_storage =
|
||||
(parms.squeue.is_small || parms.rqueue.is_small);
|
||||
}
|
||||
|
Reference in New Issue
Block a user