Sasha Khapyorsky wrote:
On 10:57 Thu 01 Jan , Yevgeny Kliteynik wrote:
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]>
Applied. Thanks.
BTW is it legal from IBA point of view for switch to setup logical state
of port 0 without SM intervention after reset?
Good question. I don't remember any special port 0 treatment in the spec
WRT the port state...
-- Yevgeny
Sasha
---
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