[ofa-general] [PATCH] opensm: fix structure definition for trap 257-258

Ralph Campbell ralph.campbell at qlogic.com
Fri Feb 13 11:31:02 PST 2009


I was looking at a structure definition for trap messages in the opensm
code and noticed this minor bug.
Here is a patch to correct the problem.

Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>

diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h
index 0f9d110..cc92f36 100644
--- a/opensm/include/iba/ib_types.h
+++ b/opensm/include/iba/ib_types.h
@@ -7176,10 +7176,9 @@ typedef struct _ib_mad_notice_attr	// Total Size calc  Accumulated
 			ib_net16_t pad1;	// 2
 			ib_net16_t lid1;	// 2
 			ib_net16_t lid2;	// 2
-			ib_net32_t key;	// 2
-			uint8_t sl;	// 1
-			ib_net32_t qp1;	// 4
-			ib_net32_t qp2;	// 4
+			ib_net32_t key;	// 4
+			ib_net32_t qp1;	// 4b sl, 4b pad, 24b qp1
+			ib_net32_t qp2;	// 8b pad, 24b qp2
 			ib_gid_t gid1;	// 16
 			ib_gid_t gid2;	// 16
 		} PACK_SUFFIX ntc_257_258;





More information about the general mailing list