OpenSM: don't remove our own SM port.
PATCH 2/3 OpenSM: don't remove our own SM port.
When cleaning up remotes of non reachable ports anymore. Make exception for our own local SM port. In that case port still be in SM DB and running single port mode is possible.
Signed-off-by Sasha Khapyorsky <[email protected]>
--- opensm/osm_drop_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
opensm/osm_drop_mgr.c +3 -1
@@ -114,7 +114,9 @@ static void drop_mgr_clean_physp(osm_sm_t * sm, IN osm_physp_t * p_physp)the remote port, since it is no longer reachable. This can be done if we reset the discovery count of the remote port. */ -if (!p_remote_physp->p_node->sw) { +if (!p_remote_physp->p_node->sw && + p_remote_physp->port_guid != + sm->p_subn->sm_port_guid) { p_remote_port->discovery_count =0 ;OSM_LOG (sm->p_log,OSM_LOG_DEBUG , "Resetting discovery count of node: "
Signature · 6 lines
1.8.1.2 -- 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