[ofa-general] [PATCH] opensm/PerfMgr: Reduce host name length

Hal Rosenstock hnrose at comcast.net
Tue May 12 04:21:03 PDT 2009


to what's needed (based on NodeDescription length)

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
diff --git a/opensm/include/opensm/osm_event_plugin.h b/opensm/include/opensm/osm_event_plugin.h
index 41a5810..33d1920 100644
--- a/opensm/include/opensm/osm_event_plugin.h
+++ b/opensm/include/opensm/osm_event_plugin.h
@@ -60,7 +60,7 @@ BEGIN_C_DECLS
 *
 *********/
 
-#define OSM_EPI_NODE_NAME_LEN (128)
+#define OSM_EPI_NODE_NAME_LEN (65)
 
 struct osm_opensm;
 /** =========================================================================
diff --git a/opensm/include/opensm/osm_perfmgr_db.h b/opensm/include/opensm/osm_perfmgr_db.h
index d0eff73..42a47bd 100644
--- a/opensm/include/opensm/osm_perfmgr_db.h
+++ b/opensm/include/opensm/osm_perfmgr_db.h
@@ -131,7 +131,7 @@ typedef struct db_port {
 /** =========================================================================
  * group port counters for ports into the nodes
  */
-#define NODE_NAME_SIZE (IB_NODE_DESCRIPTION_SIZE << 1)
+#define NODE_NAME_SIZE (IB_NODE_DESCRIPTION_SIZE + 1)
 typedef struct db_node {
 	cl_map_item_t map_item;	/* must be first */
 	uint64_t node_guid;



More information about the general mailing list