[ofa-general] [PATCH] opensm/opensm/osm_perfmgr_db.c: fix clearing previous count when "out of band"

Ira Weiny weiny2 at llnl.gov
Thu Nov 29 19:37:20 PST 2007


>From f0e6e9c967b4ea1bcd3528bab2f2785bc17762a5 Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Wed, 28 Nov 2007 12:41:42 -0800
Subject: [PATCH] opensm/opensm/osm_perfmgr_db.c: fix clearing previous count when "out of band"
clear occurs

Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
---
 opensm/opensm/osm_perfmgr_db.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opensm/opensm/osm_perfmgr_db.c b/opensm/opensm/osm_perfmgr_db.c
index fd2db11..b98434b 100644
--- a/opensm/opensm/osm_perfmgr_db.c
+++ b/opensm/opensm/osm_perfmgr_db.c
@@ -337,7 +337,7 @@ perfmgr_db_err_t
 perfmgr_db_clear_prev_err(perfmgr_db_t * db, uint64_t guid, uint8_t port)
 {
 	_db_node_t *node = NULL;
-	perfmgr_db_data_cnt_reading_t *previous = NULL;
+	perfmgr_db_err_reading_t *previous = NULL;
 	perfmgr_db_err_t rc = PERFMGR_EVENT_DB_SUCCESS;
 
 	cl_plock_excl_acquire(&(db->lock));
@@ -345,10 +345,10 @@ perfmgr_db_clear_prev_err(perfmgr_db_t * db, uint64_t guid, uint8_t port)
 	if ((rc = bad_node_port(node, port)) != PERFMGR_EVENT_DB_SUCCESS)
 		goto Exit;
 
-	previous = &(node->ports[port].dc_previous);
+	previous = &(node->ports[port].err_previous);
 
 	memset(previous, 0, sizeof(*previous));
-	node->ports[port].dc_previous.time = time(NULL);
+	node->ports[port].err_previous.time = time(NULL);
 
       Exit:
 	cl_plock_release(&(db->lock));
-- 
1.5.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-opensm-opensm-osm_perfmgr_db.c-fix-clearing-previou.patch
Type: application/octet-stream
Size: 1392 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20071129/bce1b3b6/attachment.obj>


More information about the general mailing list