From fcbca510d8c28411dcd6ece9205aecb3145c8eb1 Mon Sep 17 00:00:00 2001 From: Pavel Shamis Date: Mon, 17 Dec 2007 10:30:30 +0000 Subject: [PATCH] The ib_inline_max should be updated only when SEND qp is created. This commit was SVN r16973. --- ompi/mca/btl/openib/connect/btl_openib_connect_xoob.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ompi/mca/btl/openib/connect/btl_openib_connect_xoob.c b/ompi/mca/btl/openib/connect/btl_openib_connect_xoob.c index 702b986814..8669733436 100644 --- a/ompi/mca/btl/openib/connect/btl_openib_connect_xoob.c +++ b/ompi/mca/btl/openib/connect/btl_openib_connect_xoob.c @@ -265,8 +265,9 @@ static int xoob_qp_create(mca_btl_base_endpoint_t* endpoint, xoob_qp_type type) BTL_ERROR(("error creating qp errno says %s", strerror(errno))); return OMPI_ERROR; } - openib_btl->ib_inline_max = qp_init_attr.cap.max_inline_data; - + if (SEND == type) { + openib_btl->ib_inline_max = qp_init_attr.cap.max_inline_data; + } attr.qp_state = IBV_QPS_INIT; attr.pkey_index = openib_btl->pkey_index; attr.port_num = openib_btl->port_num;