components/open-fabrics/libibmad/patches/base.patch
changeset 984 f34e7c7efa38
parent 490 20074ee5793e
child 995 52ebc73c889f
--- a/components/open-fabrics/libibmad/patches/base.patch	Thu Sep 13 09:43:23 2012 +0200
+++ b/components/open-fabrics/libibmad/patches/base.patch	Thu Sep 20 09:39:44 2012 -0700
@@ -89,6 +89,17 @@
  	       sizeof(uint64_t));
  	return ntohll(val);
  }
+diff -r -u /tmp/libibmad-1.3.7/src/mad.c libibmad-1.3.7/src/mad.c
+--- /tmp/libibmad-1.3.7/src/mad.c	Wed Feb 16 02:12:53 2011
++++ libibmad-1.3.7/src/mad.c	Thu Sep 13 09:31:03 2012
[email protected]@ -61,6 +61,7 @@
+ 		trid = random();
+ 	}
+ 	next = ++trid | (base << 32);
++	next &= 0x00ffffffffffffff;
+ 	return next;
+ }
+ 
 diff -r -u /tmp/libibmad-1.3.7/src/dump.c libibmad-1.3.7/src/dump.c
 --- /tmp/libibmad-1.3.7/src/dump.c	Wed Feb 16 02:12:53 2011
 +++ libibmad-1.3.7/src/dump.c	Thu Feb 24 11:27:11 2011