diff mbox

opensm/osm_subnet.c: Only parameters that marked with can_update flag should be updated during conf file rescan

Message ID 20121024162627.GD18591@calypso (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Alex Netes Oct. 24, 2012, 4:26 p.m. UTC
Signed-off-by: Alex Netes <alexne@mellanox.com>
---
 opensm/osm_subnet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/opensm/osm_subnet.c b/opensm/osm_subnet.c
index b9a491b..541105a 100644
--- a/opensm/osm_subnet.c
+++ b/opensm/osm_subnet.c
@@ -2168,7 +2168,7 @@  int osm_subn_rescan_conf_files(IN osm_subn_t * p_subn)
 
 			token_matched = 1;
 
-			if (strcmp(r->name, p_key))
+			if (!r->can_update || strcmp(r->name, p_key))
 				continue;
 
 			p_field1 = (void *)p_opts->file_opts + r->opt_offset;