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

From: Roland Dreier
Date: Wed Jan 12 2005 - 16:59:58 EST


Add qp_type to struct ib_qp.

Signed-off by: Sean Hefty <sean.hefty@xxxxxxxxx>
Signed-off-by: Roland Dreier <roland@xxxxxxxxxxx>

--- 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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/