From patchwork Thu Apr 7 19:02:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 693321 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p388EDr7003611 for ; Fri, 8 Apr 2011 08:14:17 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756297Ab1DGTDA (ORCPT ); Thu, 7 Apr 2011 15:03:00 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:34439 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756227Ab1DGTC7 (ORCPT ); Thu, 7 Apr 2011 15:02:59 -0400 Received: by fxm17 with SMTP id 17so1880707fxm.19 for ; Thu, 07 Apr 2011 12:02:58 -0700 (PDT) Received: by 10.223.14.137 with SMTP id g9mr1283201faa.8.1302202978135; Thu, 07 Apr 2011 12:02:58 -0700 (PDT) Received: from [192.168.1.103] (c-75-69-247-31.hsd1.ma.comcast.net [75.69.247.31]) by mx.google.com with ESMTPS id 17sm566620far.43.2011.04.07.12.02.55 (version=SSLv3 cipher=OTHER); Thu, 07 Apr 2011 12:02:57 -0700 (PDT) Message-ID: <4D9E0A5D.8050602@dev.mellanox.co.il> Date: Thu, 07 Apr 2011 15:02:53 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Alex Netes CC: "linux-rdma@vger.kernel.org" Subject: [PATCH] osmtest/osmt_multicast.c: Fixed another insufficient component case Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Apr 2011 08:14:17 +0000 (UTC) Checking Create given MGID=0 skip Qkey and Pkey (o15.0.1.4) - Error 02A7 Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/osmtest/osmt_multicast.c b/osmtest/osmt_multicast.c index 2ee6470..e4eba64 100644 --- a/osmtest/osmt_multicast.c +++ b/osmtest/osmt_multicast.c @@ -1159,13 +1159,15 @@ ib_api_status_t osmt_run_mcast_flow(IN osmtest_t * const p_osmt) sa_mad); OSM_LOG(&p_osmt->log, OSM_LOG_ERROR, EXPECTING_ERRORS_END "\n"); - if (status != IB_REMOTE_ERROR || - ((ib_net16_t) (sa_mad->status & IB_SMP_STATUS_MASK)) != - IB_SA_MAD_STATUS_INSUF_COMPS) { - OSM_LOG(&p_osmt->log, OSM_LOG_ERROR, "ERR 02A7: " - "Expected REMOTE ERROR IB_SA_MAD_STATUS_INSUF_COMPS got:%s/%s\n", - ib_get_err_str(status), + if (((ib_net16_t) (sa_mad->status & IB_SMP_STATUS_MASK)) != + IB_SA_MAD_STATUS_INSUF_COMPS) + OSM_LOG(&p_osmt->log, OSM_LOG_INFO, + "Expected IB_SA_MAD_STATUS_INSUF_COMPS got:%s\n", ib_get_mad_status_str((ib_mad_t *) sa_mad)); + if (status != IB_REMOTE_ERROR) { + OSM_LOG(&p_osmt->log, OSM_LOG_ERROR, "ERR 02A7: " + "Expected REMOTE ERROR got:%s\n", + ib_get_err_str(status)); status = IB_ERROR; goto Exit; }