[ofa-general] [PATCH][MINOR] OpenSM/osm_subnet.c: Support configurable no_clients_rereg in opensm options file

Hal Rosenstock halr at voltaire.com
Mon Mar 5 12:41:47 PST 2007


OpenSM/osm_subnet.c: Support configurable no_clients_rereg in opensm
options file

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

diff --git a/osm/opensm/osm_subnet.c b/osm/opensm/osm_subnet.c
index e4e69c0..4be09dc 100644
--- a/osm/opensm/osm_subnet.c
+++ b/osm/opensm/osm_subnet.c
@@ -1028,6 +1028,10 @@ osm_subn_parse_conf_file(
         "enable_quirks",
         p_key, p_val, &p_opts->enable_quirks);
 
+      __osm_subn_opts_unpack_boolean(
+       "no_clients_rereg",
+       p_key, p_val, &p_opts->no_clients_rereg);
+
     }
   }
   fclose(opts_file);
@@ -1250,6 +1254,8 @@ osm_subn_write_conf_file(
     "dump_files_dir %s\n\n"
     "# If TRUE enables new high risk options and hardware specific quirks\n"
     "enable_quirks %s\n\n"
+    "# If TRUE disables client reregistration\n"
+    "no_clients_rereg %s\n\n"
     "# If TRUE OpenSM should disable multicast support\n"  
     "no_multicast_option %s\n\n"
     "# No multicast routing is performed if TRUE\n"
@@ -1267,6 +1273,7 @@ osm_subn_write_conf_file(
     p_opts->accum_log_file ? "TRUE" : "FALSE",
     p_opts->dump_files_dir,
     p_opts->enable_quirks ? "TRUE" : "FALSE",
+    p_opts->no_clients_rereg ? "TRUE" : "FALSE",
     p_opts->no_multicast_option ? "TRUE" : "FALSE",
     p_opts->disable_multicast ? "TRUE" : "FALSE",
     p_opts->exit_on_fatal ? "TRUE" : "FALSE",






More information about the general mailing list