[openib-general] OpenSM/osm_lif_mgr.c: In __osm_lid_mgr_set_physp_pi, check for change in neighbor MTU rather than MTUCap

Hal Rosenstock halr at voltaire.com
Sun Dec 18 08:29:04 PST 2005


OpenSM/osm_lif_mgr.c: In __osm_lid_mgr_set_physp_pi, check for change in
neighbor MTU rather than MTUCap in order to determine whether link
should be DOWNed

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

Index: osm_lid_mgr.c
===================================================================
--- osm_lid_mgr.c       (revision 4522)
+++ osm_lid_mgr.c       (working copy)
@@ -1095,7 +1095,7 @@ __osm_lid_mgr_set_physp_pi(
       To reset the port state machine we can send PortInfo.State = DOWN.
       (see: 7.2.7 p161 lines:10-19.)
     */
-    if ( (mtu != ib_port_info_get_mtu_cap( p_old_pi )) ||
+    if ( (mtu != ib_port_info_get_neighbor_mtu( p_old_pi )) ||
          (op_vls !=  ib_port_info_get_op_vls(p_old_pi)))
     {
       if( osm_log_is_active( p_mgr->p_log, OSM_LOG_DEBUG ) )





More information about the general mailing list