[openib-general] [PATCH][14/18] InfiniBand/core: add qp_type to struct ib_qp

Roland Dreier roland at topspin.com
Wed Jan 12 13:48:13 PST 2005


Add qp_type to struct ib_qp.

Signed-off by: Sean Hefty <sean.hefty at intel.com>
Signed-off-by: Roland Dreier <roland at topspin.com>

--- linux/drivers/infiniband/include/ib_verbs.h	(revision 1507)
+++ linux/drivers/infiniband/include/ib_verbs.h	(revision 1508)
@@ -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 {
--- linux/drivers/infiniband/core/verbs.c	(revision 1507)
+++ linux/drivers/infiniband/core/verbs.c	(revision 1508)
@@ -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);




More information about the general mailing list