[openib-general] [PATCH 2/7] IB/ipath - performance improvements via mmap of queues

Ralph Campbell ralphc at pathscale.com
Fri Aug 11 14:55:38 PDT 2006


MTHCA changes to correspond to the libibverbs changes.

Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>

Index: src/userspace/libmthca/src/verbs.c
===================================================================
--- src/userspace/libmthca/src/verbs.c	(revision 8843)
+++ src/userspace/libmthca/src/verbs.c	(working copy)
@@ -262,6 +262,7 @@
 {
 	struct mthca_cq *cq = to_mcq(ibcq);
 	struct mthca_resize_cq cmd;
+	struct ibv_resize_cq_resp resp;
 	struct ibv_mr *mr;
 	struct mthca_buf buf;
 	int old_cqe;
@@ -297,7 +298,8 @@
 	old_cqe = ibcq->cqe;
 
 	cmd.lkey = mr->lkey;
-	ret = ibv_cmd_resize_cq(ibcq, cqe - 1, &cmd.ibv_cmd, sizeof cmd);
+	ret = ibv_cmd_resize_cq(ibcq, cqe - 1, &cmd.ibv_cmd, sizeof cmd,
+				&resp, sizeof resp);
 	if (ret) {
 		mthca_dereg_mr(mr);
 		mthca_free_buf(&buf);






More information about the general mailing list