7199357 libibmad: encoding VFs in transaction IDs s11-update
authorAlex Chiu <Alex.Chiu@Oracle.COM>
Thu, 25 Oct 2012 09:57:49 -0700
branchs11-update
changeset 2407 772750492a43
parent 2403 a4a5919f480b
child 2408 54e8d1ce1654
7199357 libibmad: encoding VFs in transaction IDs
components/open-fabrics/libibmad/patches/base.patch
--- a/components/open-fabrics/libibmad/patches/base.patch	Tue Oct 23 23:31:19 2012 -0700
+++ b/components/open-fabrics/libibmad/patches/base.patch	Thu Oct 25 09:57:49 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	Wed Oct 10 10:28:45 2012
+@@ -61,6 +61,7 @@
+ 		trid = random();
+ 	}
+ 	next = ++trid | (base << 32);
++	next &= 0x00ffffffffffffff;
+ 	return next;
+ }
+ 
 diff -r -u /tmp/libibmad-1.3.7/src/resolve.c libibmad-1.3.7/src/resolve.c
 --- /tmp/libibmad-1.3.7/src/resolve.c	Wed Feb 16 02:12:53 2011
 +++ libibmad-1.3.7/src/resolve.c	Mon Oct  1 01:41:17 2012