[ofa-general] [PATCH] osm_perfmgr.c: Fix extra port being added to num_ports

Ira Weiny weiny2 at llnl.gov
Thu Aug 16 15:00:02 PDT 2007


For some reason there was a +1 in here.  This resulted in the dump function
printing a fictitious extra port for each node.

Ira


>From 873fc9b19ddb8e4db068d0b2d9618310e57f3fd1 Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Tue, 14 Aug 2007 19:16:56 -0700
Subject: [PATCH] Fix extra port being added to num_ports


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

diff --git a/opensm/opensm/osm_perfmgr.c b/opensm/opensm/osm_perfmgr.c
index 43689fa..34c18ff 100644
--- a/opensm/opensm/osm_perfmgr.c
+++ b/opensm/opensm/osm_perfmgr.c
@@ -473,7 +473,7 @@ __osm_perfmgr_query_counters(cl_map_item_t * const p_map_item, void *context)
 	node_guid = cl_ntoh64(node->node_info.node_guid);
 
 	/* make sure we have a database object ready to store this information */
-	if (perfmgr_db_create_entry(pm->db, node_guid, num_ports + 1,
+	if (perfmgr_db_create_entry(pm->db, node_guid, num_ports,
 				    node->print_desc) !=
 		PERFMGR_EVENT_DB_SUCCESS)
 	{
-- 
1.5.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-extra-port-being-added-to-num_ports.patch
Type: application/octet-stream
Size: 940 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20070816/e6275f86/attachment.obj>


More information about the general mailing list