7199357 libibmad: encoding VFs in transaction IDs
authorAlex Chiu <Alex.Chiu@Oracle.COM>
Thu, 20 Sep 2012 09:39:44 -0700
changeset 984 f34e7c7efa38
parent 983 8cd8254141e2
child 985 57467415833a
7199357 libibmad: encoding VFs in transaction IDs
components/open-fabrics/libibmad/patches/base.patch
--- 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
+@@ -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