[openib-general] [PATCH] Add QP type to struct ib_qp

Sean Hefty mshefty at ichips.intel.com
Mon Jan 10 17:37:34 PST 2005


This adds the qp_type to the struct ib_qp.  The field is used by the CM.
A future update would be to examine mthca to see if it can use the same field.

- Sean

Index: core/verbs.c
===================================================================
--- core/verbs.c	(revision 1505)
+++ core/verbs.c	(working copy)
@@ -132,6 +132,7 @@
 		qp->srq	       	  = qp_init_attr->srq;
 		qp->event_handler = qp_init_attr->event_handler;
 		qp->qp_context    = qp_init_attr->qp_context;
+		qp->qp_type	  = qp_init_attr->qp_type;
 		atomic_inc(&pd->usecnt);
 		atomic_inc(&qp_init_attr->send_cq->usecnt);
 		atomic_inc(&qp_init_attr->recv_cq->usecnt);
Index: include/ib_verbs.h
===================================================================
--- include/ib_verbs.h	(revision 1505)
+++ include/ib_verbs.h	(working copy)
@@ -659,6 +659,7 @@
 	void                  (*event_handler)(struct ib_event *, void *);
 	void		       *qp_context;
 	u32			qp_num;
+	enum ib_qp_type		qp_type;
 };
 
 struct ib_mr {



More information about the general mailing list