Signed-off-by: Hal Rosenstock <[email protected]> --- diff --git a/opensm/opensm/osm_perfmgr.c b/opensm/opensm/osm_perfmgr.c index 6d325cb..a74d35e 100644 --- a/opensm/opensm/osm_perfmgr.c +++ b/opensm/opensm/osm_perfmgr.c @@ -1106,6 +1106,9 @@ static void osm_pc_rcv_process(void *context, void *data) "Processing received MAD status 0x%x context 0x%" PRIx64 " port %u\n", p_mad->status, node_guid, port); + CL_ASSERT(p_mad->attr_id == IB_MAD_ATTR_PORT_CNTRS || + p_mad->attr_id == IB_MAD_ATTR_CLASS_PORT_INFO); + /* Response could also be redirection (IBM eHCA PMA does this) */ if (p_mad->attr_id == IB_MAD_ATTR_CLASS_PORT_INFO) { char gid_str[INET6_ADDRSTRLEN]; @@ -1165,8 +1168,6 @@ static void osm_pc_rcv_process(void *context, void *data) goto Exit; } - CL_ASSERT(p_mad->attr_id == IB_MAD_ATTR_PORT_CNTRS); - perfmgr_db_fill_err_read(wire_read, &err_reading); /* FIXME separate query for extended counters if they are supported * on the port. _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
