[ofa-general] [PATCH]{MINOR] OpenSM/libvendor/osm_vendor_ibumad.c: In umad_receiver, display DR path of sent MAD when it times out
Hal Rosenstock
halr at voltaire.com
Mon Mar 12 17:19:33 PDT 2007
OpenSM/libvendor/osm_vendor_ibumad.c: In umad_receiver, display DR path
of sent MAD when it times out
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
diff --git a/osm/libvendor/osm_vendor_ibumad.c b/osm/libvendor/osm_vendor_ibumad.c
index 8661731..0bbd4c7 100644
--- a/osm/libvendor/osm_vendor_ibumad.c
+++ b/osm/libvendor/osm_vendor_ibumad.c
@@ -64,6 +64,7 @@
#include <opensm/osm_madw.h>
#include <opensm/osm_log.h>
#include <opensm/osm_mad_pool.h>
+#include <opensm/osm_helper.h>
#include <vendor/osm_vendor_api.h>
/****s* OpenSM: Vendor AL/osm_umad_bind_info_t
@@ -342,9 +343,13 @@ umad_receiver(void *p_ptr)
mad->mgmt_class,
cl_ntoh16(ib_mad_addr->lid));
} else {
+ ib_smp_t *smp;
+
/* Direct routed SMP */
+ smp = (ib_smp_t *)mad;
osm_log(p_vend->p_log, OSM_LOG_ERROR,
- "umad_receiver: ERR 5411: DR SMP\n");
+ "umad_receiver: ERR 5411: DR SMP Hop Ptr: 0x%X\n", smp->hop_ptr);
+ osm_dump_smp_dr_path(p_vend->p_log, smp, OSM_LOG_ERROR);
}
if (!(p_req_madw = get_madw(p_vend, &mad->trans_id))) {
More information about the general
mailing list