From patchwork Sat May 3 05:40:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4105611 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 996B69F485 for ; Sat, 3 May 2014 05:41:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C065C20263 for ; Sat, 3 May 2014 05:41:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86B2420384 for ; Sat, 3 May 2014 05:40:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750790AbaECFk5 (ORCPT ); Sat, 3 May 2014 01:40:57 -0400 Received: from mail-we0-f176.google.com ([74.125.82.176]:39885 "EHLO mail-we0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750768AbaECFk5 (ORCPT ); Sat, 3 May 2014 01:40:57 -0400 Received: by mail-we0-f176.google.com with SMTP id q59so2960928wes.7 for ; Fri, 02 May 2014 22:40:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=2Y0tFQdu2x3ig9p2pNP8Y9ibWWtcM/aVyEEfnjMO2eU=; b=SfQIeSusL6kGkBQ3R4Yj0sIu9d08/KRWCtkQxPYvLntf2+FSrlZkRBVdqd8jFYqbKv Nqoqa+f7tGovqxy+LOePSSE1UzO/Lig7PHCeNApHdeFQArqVKH8BLEeew52ro9zc0DAf FUWWtZUKNkYHYL4jh9tdv0xj66k86C4D1mohqOAo5RuutrWwWz1/5UTK14Zuh7X6RNGO sRyx6pseGjZTwJ3nHh77S6ktXq1aagCyt2Q2d8cJ0JxfD08khIDVHLcI8nbAm2nLByJT yPuD85hACmyRgpIMZFXe32qTx55TBsgI7maHbzWIVYVmZ2oQFODsKoi3O2CVmIAAFZ4a Ri/w== X-Gm-Message-State: ALoCoQmWZw6lPSaSGT4PXWbjHCJoUA3Ep+mzTHr9qE9yKeBC0gX6u3TvQ2smcvXAoGVzOtjLD6r6 X-Received: by 10.180.100.234 with SMTP id fb10mr6248349wib.26.1399095655836; Fri, 02 May 2014 22:40:55 -0700 (PDT) Received: from [10.70.1.87] (bzq-218-90-50.red.bezeqint.net. [81.218.90.50]) by mx.google.com with ESMTPSA id hg18sm1938220wib.19.2014.05.02.22.40.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 02 May 2014 22:40:55 -0700 (PDT) Message-ID: <53648165.20403@dev.mellanox.co.il> Date: Sat, 03 May 2014 01:40:53 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" CC: Ira Weiny , "Susan Coulter (skc@lanl.gov)" , Florent Parent Subject: [PATCH 3/3 opensm] osm_perfmgr_db.c: Add missing clear of new xmit_wait counter in clear_counters Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Found-by: Susan Coulter Signed-off-by: Hal Rosenstock Signed-off-by: Ira Weiny --- opensm/osm_perfmgr_db.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) node->ports[i].dc_total.xmit_data = 0; diff --git a/opensm/osm_perfmgr_db.c b/opensm/osm_perfmgr_db.c index 1b78942..e57b804 100644 --- a/opensm/osm_perfmgr_db.c +++ b/opensm/osm_perfmgr_db.c @@ -627,6 +627,7 @@ static void clear_counters(cl_map_item_t * const p_map_item, void *context) node->ports[i].err_total.link_integrity = 0; node->ports[i].err_total.buffer_overrun = 0; node->ports[i].err_total.vl15_dropped = 0; + node->ports[i].err_total.xmit_wait = 0; node->ports[i].err_total.time = ts;