From patchwork Tue Sep 7 15:01:42 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 161121 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 o87F0vGJ032530 for ; Tue, 7 Sep 2010 15:02:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757119Ab0IGPCK (ORCPT ); Tue, 7 Sep 2010 11:02:10 -0400 Received: from mail.mellanox.co.il ([194.90.237.43]:51040 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752378Ab0IGPCJ (ORCPT ); Tue, 7 Sep 2010 11:02:09 -0400 Received: from Internal Mail-Server by MTLPINE2 (envelope-from kliteyn@mellanox.co.il) with SMTP; 7 Sep 2010 18:01:14 +0300 Received: from [10.4.1.29] (10.4.1.29) by mtlmail01.mtl.com (10.0.8.12) with Microsoft SMTP Server id 8.2.254.0; Tue, 7 Sep 2010 18:01:52 +0300 Message-ID: <4C8653D6.1000201@mellanox.co.il> Date: Tue, 7 Sep 2010 18:01:42 +0300 From: Yevgeny Kliteynik Reply-To: kliteyn@dev.mellanox.co.il User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky , Linux RDMA Subject: [PATCH] osmtest/osmtest.c: handle timeouts in PR stress test 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.3 (demeter1.kernel.org [140.211.167.41]); Tue, 07 Sep 2010 15:02:11 +0000 (UTC) diff --git a/opensm/osmtest/osmtest.c b/opensm/osmtest/osmtest.c index 7412ce7..b2ec3fa 100644 --- a/opensm/osmtest/osmtest.c +++ b/opensm/osmtest/osmtest.c @@ -2753,7 +2753,11 @@ static ib_api_status_t osmtest_stress_small_rmpp(IN osmtest_t * const p_osmt) status = osmtest_stress_port_recs_small(p_osmt, &delta_recs, &delta_queries); - if (status != IB_SUCCESS) + if (status == IB_TIMEOUT) { + num_timeouts++; + continue; + } + else if (status != IB_SUCCESS) goto Exit; num_recs += delta_recs; @@ -2889,7 +2893,11 @@ static ib_api_status_t osmtest_stress_get_pr(IN osmtest_t * const p_osmt) status = osmtest_stress_path_recs_by_lid(p_osmt, &delta_recs, &delta_queries); - if (status != IB_SUCCESS) + if (status == IB_TIMEOUT) { + num_timeouts++; + continue; + } + else if (status != IB_SUCCESS) goto Exit; num_recs += delta_recs;