[openib-general] [PATCH] [TRIVIAL] In ib_cq struct, change member name from context to cq_context

Hal Rosenstock halr at voltaire.com
Tue Sep 14 11:54:38 PDT 2004


In ib_cq struct, change member name from context to cq_context
(This is on Roland's branch). This is for consistency with other context
member names (and the openib-candidate version of this).

Note that I did not check the ULPs to see if they were affected.

Index: include/ib_verbs.h
===================================================================
--- include/ib_verbs.h	(revision 826)
+++ include/ib_verbs.h	(working copy)
@@ -591,7 +592,7 @@
 	struct ib_device *device;
 	ib_comp_handler   comp_handler;
 	void             (*event_handler)(struct ib_event *, void *);
-	void *            context;
+	void             *cq_context;
 	int               cqe;
 	atomic_t          usecnt; /* count number of work queues */
 };
Index: core/ib_verbs.c
===================================================================
--- core/ib_verbs.c	(revision 826)
+++ core/ib_verbs.c	(working copy)
@@ -191,7 +191,7 @@
 		cq->device        = device;
 		cq->comp_handler  = comp_handler;
 		cq->event_handler = event_handler;
-		cq->context       = cq_context;
+		cq->cq_context    = cq_context;
 		atomic_set(&cq->usecnt, 0);
 	}
 
Index: hw/mthca/mthca_cq.c
===================================================================
--- hw/mthca/mthca_cq.c	(revision 826)
+++ hw/mthca/mthca_cq.c	(working copy)
@@ -177,7 +177,7 @@
 		return;
 	}
 
-	cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.context);
+	cq->ibcq.comp_handler(&cq->ibcq, cq->ibcq.cq_context);
 
 	if (atomic_dec_and_test(&cq->refcount))
 		wake_up(&cq->wait);





More information about the general mailing list