[ofa-general] [PATCH] opensm/opensm/osm_subnet.c: add a comment of valid "force_link_speed" values

Ira Weiny weiny2 at llnl.gov
Wed Jan 23 12:40:28 PST 2008


>From 020618d66bdcecba6f49bc7f48ae40485d657437 Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Wed, 23 Jan 2008 12:39:05 -0800
Subject: [PATCH] opensm/opensm/osm_subnet.c: add a comment of valid "force_link_speed" values


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

diff --git a/opensm/opensm/osm_subnet.c b/opensm/opensm/osm_subnet.c
index c9b4d57..7b14e0c 100644
--- a/opensm/opensm/osm_subnet.c
+++ b/opensm/opensm/osm_subnet.c
@@ -1469,10 +1469,19 @@ ib_api_status_t osm_subn_write_conf_file(IN osm_subn_opt_t * const p_opts)
 		"leaf_head_of_queue_lifetime 0x%02x\n\n"
 		"# Limit the maximal operational VLs\n"
 		"max_op_vls %u\n\n"
-		"# Force link speed enable on switch links\n"
+		"# Force PortInfo:LinkSpeedEnabled on switch ports\n"
 		"# If 0, don't modify PortInfo:LinkSpeedEnabled on switch port\n"
 		"# Otherwise, use value for PortInfo:LinkSpeedEnabled on switch port\n"
-		"# Default is 15 (to set to PortInfo:LinkSpeedSupported)\n\n"
+		"# Values are (IB Spec 1.2, 14.2.5.6 Table 145 \"PortInfo\")\n"
+		"#    1: 2.5 Gbps\n"
+		"#    2: 5.0 Gbps\n"
+		"#    3: 2.5 or 5.0 Gbps\n"
+		"#    4: 10.0 Gbps\n"
+		"#    5: 2.5 or 10.0 Gbps\n"
+		"#    6: 5.0 or 10.0 Gbps\n"
+		"#    7: 2.5 or 5.0 or 10.0 Gbps\n"
+		"#    8-14: Reserved\n"
+		"#    Default 15: set to PortInfo:LinkSpeedSupported\n\n"
 		"force_link_speed %u\n\n"
 		"# The subnet_timeout code that will be set for all the ports\n"
 		"# The actual timeout is 4.096usec * 2^<subnet_timeout>\n"
-- 
1.5.1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-opensm-opensm-osm_subnet.c-add-a-comment-of-valid.patch
Type: application/octet-stream
Size: 1614 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080123/f97dbfec/attachment.obj>


More information about the general mailing list