[openib-general] [PATCH 2 of 7] branch 1.0, libmthca: upgrade to version 1.0.2

Jack Morgenstein jackm at mellanox.co.il
Thu Mar 30 06:51:22 PST 2006


libmthca: upgrade branch to version 1.0.2

Index: configure.in
===================================================================
--- configure.in	(.../branches/1.0/src/userspace/libmthca)	(revision 6101)
+++ configure.in	(.../trunk/src/userspace/libmthca)	(revision 6101)
@@ -1,11 +1,11 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.57)
-AC_INIT(libmthca, 1.0, openib-general at openib.org)
+AC_INIT(libmthca, 1.0.2, openib-general at openib.org)
 AC_CONFIG_SRCDIR([src/mthca.h])
 AC_CONFIG_AUX_DIR(config)
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(libmthca, 1.0)
+AM_INIT_AUTOMAKE(libmthca, 1.0.2)
 AM_PROG_LIBTOOL
 
 dnl Checks for programs
Index: src/qp.c
===================================================================
--- src/qp.c	(.../branches/1.0/src/userspace/libmthca)	(revision 6101)
+++ src/qp.c	(.../trunk/src/userspace/libmthca)	(revision 6101)
@@ -282,7 +282,9 @@ int mthca_tavor_post_send(struct ibv_qp 
 			      mthca_opcode[wr->opcode]);
 
 		((struct mthca_next_seg *) prev_wqe)->ee_nds =
-			htonl((size0 ? 0 : MTHCA_NEXT_DBD) | size);
+			htonl((size0 ? 0 : MTHCA_NEXT_DBD) | size |
+			((wr->send_flags & IBV_SEND_FENCE) ?
+			 MTHCA_NEXT_FENCE : 0));
 
 		if (!size0) {
 			size0 = size;
@@ -633,7 +635,9 @@ int mthca_arbel_post_send(struct ibv_qp 
 			      mthca_opcode[wr->opcode]);
 		mb();
 		((struct mthca_next_seg *) prev_wqe)->ee_nds =
-			htonl(MTHCA_NEXT_DBD | size);
+			htonl(MTHCA_NEXT_DBD | size |
+			      ((wr->send_flags & IBV_SEND_FENCE) ?
+                       	       MTHCA_NEXT_FENCE : 0));
 
 		if (!size0) {
 			size0 = size;
Index: Makefile.am
===================================================================
--- Makefile.am	(.../branches/1.0/src/userspace/libmthca)	(revision 6101)
+++ Makefile.am	(.../trunk/src/userspace/libmthca)	(revision 6101)
@@ -21,7 +21,7 @@ DEBIAN = debian/changelog debian/compat 
     debian/libmthca1.install debian/libmthca-dev.install debian/rules
 
 EXTRA_DIST = src/doorbell.h src/mthca.h src/mthca-abi.h src/wqe.h \
-    src/mthca.map libmthca.spec.in $(DEBIAN)
+    src/mthca.map libmthca.spec.in
 
 dist-hook: libmthca.spec
 	cp libmthca.spec $(distdir)






More information about the general mailing list