Hi Sasha,

When switch is coming up after reset, port 0 always reports
logical state ACTIVE.
OpenSM shouldn't clear sw->need_update flag because of port 0.

Signed-off-by: Yevgeny Kliteynik <[email protected]>
---
 opensm/opensm/osm_port_info_rcv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opensm/opensm/osm_port_info_rcv.c 
b/opensm/opensm/osm_port_info_rcv.c
index 8763b87..02ad586 100644
--- a/opensm/opensm/osm_port_info_rcv.c
+++ b/opensm/opensm/osm_port_info_rcv.c
@@ -317,7 +317,7 @@ __osm_pi_rcv_process_switch_port(IN osm_sm_t * sm,
        }

        if (ib_port_info_get_port_state(p_pi) > IB_LINK_INIT && p_node->sw &&
-           p_node->sw->need_update == 1)
+           p_node->sw->need_update == 1 && port_num != 0)
                p_node->sw->need_update = 0;

        if (p_physp->need_update)
-- 
1.5.1.4

_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to