aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRoland Dreier <roland@topspin.com>2005-01-14 23:19:12 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-14 23:19:12 -0800
commit76e696e047482a6ee2fa898321f2298fda21548a (patch)
tree3e10d53831604c99a70216d27e3f2315928ac569 /drivers
parentc74ce03dd50ccb912ad8e78d5faf3e49ff270ddf (diff)
downloadhistory-76e696e047482a6ee2fa898321f2298fda21548a.tar.gz
[PATCH] InfiniBand/core: add qp_type to struct ib_qp
Add qp_type to struct ib_qp. Signed-off by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@topspin.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/core/verbs.c1
-rw-r--r--drivers/infiniband/include/ib_verbs.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
index 4ed3633171cbb9..7c08ed0cd7dd78 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -132,6 +132,7 @@ struct ib_qp *ib_create_qp(struct ib_pd *pd,
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);
diff --git a/drivers/infiniband/include/ib_verbs.h b/drivers/infiniband/include/ib_verbs.h
index 459a9d09188531..c06e96f7fc75b6 100644
--- a/drivers/infiniband/include/ib_verbs.h
+++ b/drivers/infiniband/include/ib_verbs.h
@@ -659,6 +659,7 @@ struct ib_qp {
void (*event_handler)(struct ib_event *, void *);
void *qp_context;
u32 qp_num;
+ enum ib_qp_type qp_type;
};
struct ib_mr {