[ofa-general] ***SPAM*** [PATCH] opensm/osm_perfmgr.c: Improve assert in osm_pc_rcv_process
Hal Rosenstock
hnrose at comcast.net
Fri Feb 27 13:18:51 PST 2009
Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>
---
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.
More information about the general
mailing list