Skip to contentSkip to conversation

osm_ucast_ftree.c missing reset of ca_ports

PATCH In review Line.Holen-UdXhSnd/[email protected] 2 participants 2 messages Oct 16, 2009 – Oct 20, 2009 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 osm_ucast_ftree.c missing reset of ca_ports

ca_ports is not reset before startup of ftree routing

---

opensm/opensm/osm_ucast_ftree.c +1 -0
index 885c834..5b403f7 100644
@@ -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

#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · On 15:40 Fri 16 Oct , Line.Holen-UdXhSnd/[email protected] wrote:

ca_ports is not reset before startup of ftree routing

The patch is broken - mangled whitespaces.

Applied by hands. Thanks.

Sasha

Quoted 9 lines

---

opensm/opensm/osm_ucast_ftree.c +0 -0
index 885c834..5b403f7 100644

opensm/opensm/osm_ucast_ftree.c static void fabric_clear(ftree_fabric_t * p_ftree) · line 1008

Quoted 7 lines
opensm/opensm/osm_ucast_ftree.c +1 -0
@@ -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