The fix resolves the bug #2307. QP creation may fail, since the calculation for _reserved_ does not check for QP type. As result the max_recv_wr may get wrong value . Needs to go to both cmr:v1.4.2 and cmr:v1.5.0
This commit was SVN r22713.
Этот коммит содержится в:
родитель
4007630b34
Коммит
9fbfe6b1c0
@ -379,10 +379,12 @@ static int rdmacm_setup_qp(rdmacm_contents_t *contents,
|
||||
size_t req_inline;
|
||||
|
||||
if (qpnum == mca_btl_openib_component.credits_qp) {
|
||||
int i;
|
||||
int qp;
|
||||
|
||||
for (i = 0; i < mca_btl_openib_component.num_qps; i++) {
|
||||
reserved += mca_btl_openib_component.qp_infos[i].u.pp_qp.rd_rsv;
|
||||
for (qp = 0; qp < mca_btl_openib_component.num_qps; qp++) {
|
||||
if(BTL_OPENIB_QP_TYPE_PP(qp)) {
|
||||
reserved += mca_btl_openib_component.qp_infos[qp].u.pp_qp.rd_rsv;
|
||||
}
|
||||
}
|
||||
credits = mca_btl_openib_component.num_qps;
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user