diff options
author | Steve Wise <swise@opengridcomputing.com> | 2010-01-27 20:22:34 (GMT) |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-02-24 18:40:29 (GMT) |
commit | 5279d3ac2d9ca578d04c6f0c760485b0621eb393 (patch) | |
tree | d6fcd241a879c4e8b340e96e091a32cf1c44b3ac /drivers/infiniband/hw/cxgb3/iwch_provider.c | |
parent | 9918b28d2bf733816c5d1612fe17ca380b601b10 (diff) | |
download | linux-fsl-qoriq-5279d3ac2d9ca578d04c6f0c760485b0621eb393.tar.xz |
RDMA/cxgb3: Don't allocate the SW queue for user mode CQs
Only kernel mode CQs need the SW queue memory allocated. The SW queue
for user mode CQs is allocated in userspace by libcxgb3.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_provider.c')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index ed71755..47b35c6 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c @@ -187,7 +187,7 @@ static struct ib_cq *iwch_create_cq(struct ib_device *ibdev, int entries, int ve entries = roundup_pow_of_two(entries); chp->cq.size_log2 = ilog2(entries); - if (cxio_create_cq(&rhp->rdev, &chp->cq)) { + if (cxio_create_cq(&rhp->rdev, &chp->cq, !ucontext)) { kfree(chp); return ERR_PTR(-ENOMEM); } |