[ofa-general] ***SPAM*** [PATCH] opensm/osm_inform.c report IB traps to plugin

Eli Dorfman dorfman.eli at gmail.com
Mon Dec 8 01:41:18 PST 2008


report IB traps to plugin

Signed-off-by: Eli Dorfman <elid at voltaire.com>
---
 opensm/opensm/osm_inform.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/opensm/opensm/osm_inform.c b/opensm/opensm/osm_inform.c
index f3c8ed7..bb16e3a 100644
--- a/opensm/opensm/osm_inform.c
+++ b/opensm/opensm/osm_inform.c
@@ -565,7 +565,8 @@ osm_report_notice(IN osm_log_t * const p_log,
 	}
 
 	/* an official Event information log */
-	if (ib_notice_is_generic(p_ntc))
+	if (ib_notice_is_generic(p_ntc)) {
+		osm_opensm_report_event(p_subn->p_osm, OSM_EVENT_ID_TRAP, p_ntc);
 		OSM_LOG(p_log, OSM_LOG_INFO,
 			"Reporting Generic Notice type:%u num:%u (%s)"
 			" from LID:%u GID:%s\n",
@@ -575,6 +576,7 @@ osm_report_notice(IN osm_log_t * const p_log,
 			cl_ntoh16(p_ntc->issuer_lid),
 			inet_ntop(AF_INET6, p_ntc->issuer_gid.raw, gid_str,
 				sizeof gid_str));
+	}
 	else
 		OSM_LOG(p_log, OSM_LOG_INFO,
 			"Reporting Vendor Notice type:%u vend:%u dev:%u"
-- 
1.5.5




More information about the general mailing list