15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs s11u1-sru
authorAlex Chiu <Alex.Chiu@Oracle.COM>
Fri, 26 Apr 2013 17:13:13 -0700
branchs11u1-sru
changeset 2587 576c01af714c
parent 2586 66a039ce738d
child 2588 882be62c9698
15816849 SUNBT7199357 libibmad: encoding VFs in transaction IDs
components/open-fabrics/libibmad/patches/base.patch
--- a/components/open-fabrics/libibmad/patches/base.patch	Fri Apr 26 17:01:41 2013 -0700
+++ b/components/open-fabrics/libibmad/patches/base.patch	Fri Apr 26 17:13:13 2013 -0700
@@ -639,6 +639,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 Apr 10 12:12:42 2013
[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/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	Wed Jan  9 09:41:48 2013