[ofa-general] [PATCH] opensm/scripts: fixing MAXSMPS values to the right default

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Wed Jan 16 06:01:50 PST 2008


Hi Sasha,

OpenSM has a maxsmps default value of 4, but the scripts have
default of 0. Fixing the defaults in startup scripts.

Please apply to ofed_1_3 and master.

-- Yevgeny

Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/scripts/opensm.conf        |    4 ++--
 opensm/scripts/opensmd            |    2 +-
 opensm/scripts/redhat-opensm.init |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opensm/scripts/opensm.conf b/opensm/scripts/opensm.conf
index 2ec63d4..11c7047 100644
--- a/opensm/scripts/opensm.conf
+++ b/opensm/scripts/opensm.conf
@@ -31,8 +31,8 @@ LMC=0
 #  allowed on the wire at any one time.
 #  Specifying -maxsmps 0 allows unlimited outstanding SMPs.
 #  Without -maxsmps, OpenSM defaults to a maximum of
-#  one outstanding SMP.
-MAXSMPS=0
+#  four outstanding SMP.
+MAXSMPS=4

 # REASSIGN_LIDS
 #  This option causes OpenSM to reassign LIDs to all
diff --git a/opensm/scripts/opensmd b/opensm/scripts/opensmd
index 276a76f..e5c734e 100755
--- a/opensm/scripts/opensmd
+++ b/opensm/scripts/opensmd
@@ -98,7 +98,7 @@ else
     LMC_FLAG="-l ${LMC}"
 fi

-if [[ -z $MAXSMPS || "$MAXSMPS" == "0" ]]; then
+if [[ -z $MAXSMPS || "$MAXSMPS" == "4" ]]; then
     MAXSMPS_FLAG=""
 else
     MAXSMPS_FLAG="-maxsmps ${MAXSMPS}"
diff --git a/opensm/scripts/redhat-opensm.init b/opensm/scripts/redhat-opensm.init
index 9780f4f..56dbb7c 100755
--- a/opensm/scripts/redhat-opensm.init
+++ b/opensm/scripts/redhat-opensm.init
@@ -75,7 +75,7 @@ else
     LMC_FLAG="-l ${LMC}"
 fi

-if [[ -z $MAXSMPS ]]; then
+if [[ -z $MAXSMPS || "$MAXSMPS" == "4" ]]; then
     MAXSMPS_FLAG=""
 else
     MAXSMPS_FLAG="-maxsmps ${MAXSMPS}"
-- 
1.5.1.4




More information about the general mailing list