ca_ports is not reset before startup of ftree routing

Signed-off-by: Line Holen <[email protected]>

---

diff --git a/opensm/opensm/osm_ucast_ftree.c b/opensm/opensm/osm_ucast_ftree.c
index 885c834..5b403f7 100644
--- a/opensm/opensm/osm_ucast_ftree.c
+++ b/opensm/opensm/osm_ucast_ftree.c
@@ -1002,6 +1002,7 @@ static void fabric_clear(ftree_fabric_t * p_ftree)

        p_ftree->leaf_switches_num = 0;
        p_ftree->cn_num = 0;
+       p_ftree->ca_ports = 0;
        p_ftree->leaf_switch_rank = 0;
        p_ftree->max_switch_rank = 0;
        p_ftree->max_cn_per_leaf = 0;
--
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