Signed-off-by: Albert L. Chu <[email protected]>
---
 opensm/osm_congestion_control.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opensm/osm_congestion_control.c b/opensm/osm_congestion_control.c
index 54574b7..bfcd8a5 100644
--- a/opensm/osm_congestion_control.c
+++ b/opensm/osm_congestion_control.c
@@ -705,8 +705,10 @@ static void cc_mad_send_err_callback(void *bind_context,
        if (p_madw->status == IB_TIMEOUT) {
                p_port->cc_timeout_count++;
                if (p_port->cc_timeout_count > OSM_CC_TIMEOUT_COUNT_THRESHOLD
-                   && !p_port->cc_unavailable_flag)
+                   && !p_port->cc_unavailable_flag) {
                        p_port->cc_unavailable_flag = TRUE;
+                       p_port->cc_timeout_count = 0;
+               }
        } else
                p_cc->subn->subnet_initialization_error = TRUE;
 
-- 
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