24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18 s11u3-sru
authorboris.chiu@oracle.com
Mon, 03 Oct 2016 15:42:46 -0700
branchs11u3-sru
changeset 7025 c81434078faa
parent 7024 84310b997802
child 7033 a49f9f0272f2
24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
components/open-fabrics/libmlx4/patches/005-libmlx4-blueflame.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/open-fabrics/libmlx4/patches/005-libmlx4-blueflame.patch	Mon Oct 03 15:42:46 2016 -0700
@@ -0,0 +1,20 @@
+#This patch was developed both in-house and from outside. We plan to submit it
+#upstream, but do not yet have a target date for doing so
+#
+# HG changeset patch
+# Parent  9bfa06c26b7c06c5210ee26455daf41dd9cea492
+24617163 Missing code in libmlx4 when upgrading from ofed-1.5.3 to ofed-3.18
+
+diff -r 9bfa06c26b7c src/qp.c
+--- a/src/qp.c	Tue Sep 13 19:19:29 2016 -0700
++++ b/src/qp.c	Tue Sep 13 19:29:56 2016 -0700
+@@ -405,7 +405,8 @@
+ out:
+ 	ctx = to_mctx(ibqp->context);
+ 
+-	if (nreq == 1 && inl && size > 1 && size <= ctx->bf_buf_size / 16) {
++	if (ctx->ibv_ctx.device->blueflame_enabled && nreq == 1 && inl &&
++	    size > 1 && size <= ctx->bf_buf_size / 16) {
+ 		ctrl->owner_opcode |= htonl((qp->sq.head & 0xffff) << 8);
+ 		*(uint32_t *) ctrl->reserved |= qp->doorbell_qpn;
+ 		/*