SM may miss switch reboot because of a long sweep. In that case it won't
reread pkey tables from Switch Port 0.

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

diff --git a/opensm/osm_port_info_rcv.c b/opensm/osm_port_info_rcv.c
index d813f1a..eb68dbf 100644
--- a/opensm/osm_port_info_rcv.c
+++ b/opensm/osm_port_info_rcv.c
@@ -796,7 +796,8 @@ void osm_pi_rcv_process(IN void *context, IN void *data)
                /*
                   Get the tables on the physp.
                 */
-               if (p_physp->need_update)
+               if (p_physp->need_update || (p_node->sw &&
+                                            p_node->sw->need_update))
                        pi_rcv_get_pkey_slvl_vla_tables(sm, p_node, p_physp);
 
        }
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to