[ofa-general] [PATCH] libibmad/field.c: fix MAD MKey offset

Sasha Khapyorsky sashak at voltaire.com
Thu Jan 22 01:30:34 PST 2009


MAD MKey should be located at offset of 24 bytes which is 192 bits
(not 196).

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 libibmad/src/fields.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libibmad/src/fields.c b/libibmad/src/fields.c
index 1f2cec5..d5a1eb4 100644
--- a/libibmad/src/fields.c
+++ b/libibmad/src/fields.c
@@ -87,7 +87,7 @@ static const ib_field_t ib_mad_f[] = {
 	{160, 32, "MadModifier", mad_dump_hex},	/* TODO: add dumper */
 
 	/* word 7,8 (24-31 bytes) */
-	{196, 64, "MadMkey", mad_dump_hex},
+	{192, 64, "MadMkey", mad_dump_hex},
 
 	/* word 9 (32-37 bytes) */
 	{BE_OFFS(256, 16), "DrSmpDLID", mad_dump_hex},
-- 
1.6.0.4.766.g6fc4a




More information about the general mailing list