Message ID | 1419291132.21271.14.camel@auk59.llnl.gov (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Hal Rosenstock |
Headers | show |
On 12/22/2014 6:32 PM, Albert Chu wrote: > In cc_rcv_mad, also check for IB_MAD_STATUS_UNSUP_CLASS_VER as indication > congestion control is not available. > > Signed-off-by: Albert L. Chu <chu11@llnl.gov> Thanks. Applied. -- Hal -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/opensm/osm_congestion_control.c b/opensm/osm_congestion_control.c index ead1888..0612ba1 100644 --- a/opensm/osm_congestion_control.c +++ b/opensm/osm_congestion_control.c @@ -479,7 +479,8 @@ static void cc_rcv_mad(void *context, void *data) p_port->cc_timeout_count = 0; if (p_cc_mad->header.status) { - if (p_cc_mad->header.status & IB_MAD_STATUS_UNSUP_METHOD + if (p_cc_mad->header.status & IB_MAD_STATUS_UNSUP_CLASS_VER + || p_cc_mad->header.status & IB_MAD_STATUS_UNSUP_METHOD || p_cc_mad->header.status & IB_MAD_STATUS_UNSUP_METHOD_ATTR) p_port->cc_unavailable_flag = 1; cl_plock_release(&p_osm->lock);
In cc_rcv_mad, also check for IB_MAD_STATUS_UNSUP_CLASS_VER as indication congestion control is not available. Signed-off-by: Albert L. Chu <chu11@llnl.gov> --- opensm/osm_congestion_control.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)