[openib-general] OpenSM/osm_ucast_mgr.c: In osm_ucast_mgr_set_fwd_table, always reset port state change when set

Hal Rosenstock halr at voltaire.com
Thu Dec 21 06:08:11 PST 2006


OpenSM/osm_ucast_mgr.c: In osm_ucast_mgr_set_fwd_table, always reset
port state change when set

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

diff --git a/osm/opensm/osm_ucast_mgr.c b/osm/opensm/osm_ucast_mgr.c
index f663d2d..f546c5f 100644
--- a/osm/opensm/osm_ucast_mgr.c
+++ b/osm/opensm/osm_ucast_mgr.c
@@ -922,7 +922,7 @@ osm_ucast_mgr_set_fwd_table(
   else
     life_state = (p_mgr->p_subn->opt.packet_life_time <<3 ) & 0xf8;
 
-  if (life_state != si.life_state)
+  if ( (life_state != si.life_state) || ib_switch_info_get_state_change( &si ) )
   {
     set_swinfo_require = TRUE;
     si.life_state = life_state;







More information about the general mailing list