aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ocrdma/ocrdma.h
diff options
context:
space:
mode:
authorNaresh Gottumukkala <bgottumukkala@emulex.com>2013-08-26 05:57:38 -0400
committerRoland Dreier <roland@purestorage.com>2013-09-03 00:16:21 -0400
commit43a6b4025c79ded5b44e58ba0db97c29dd38d718 (patch)
treeb06d87d5d9d31c6f3d3e23db1510ce08415ba03e /drivers/infiniband/hw/ocrdma/ocrdma.h
parent45e86b33ec8b33f9ed41d9f9005f9e663018f8f1 (diff)
RDMA/ocrdma: Create IRD queue fix
1) Fix ocrdma_get_num_posted_shift for upto 128 QPs. 2) Create for min of dev->max_wqe and requested wqe in create_qp. 3) As part of creating ird queue, populate with basic header templates. 4) Make sure all the DB memory allocated to userspace are page aligned. 5) Fix issue in checking the mmap local cache. 6) Some code cleanup. Signed-off-by: Naresh Gottumukkala <bgottumukkala@emulex.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma.h')
-rw-r--r--drivers/infiniband/hw/ocrdma/ocrdma.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma.h b/drivers/infiniband/hw/ocrdma/ocrdma.h
index e798837f1fe0..b4511668514d 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma.h
+++ b/drivers/infiniband/hw/ocrdma/ocrdma.h
@@ -382,7 +382,7 @@ static inline struct ocrdma_srq *get_ocrdma_srq(struct ib_srq *ibsrq)
382static inline int ocrdma_get_num_posted_shift(struct ocrdma_qp *qp) 382static inline int ocrdma_get_num_posted_shift(struct ocrdma_qp *qp)
383{ 383{
384 return ((qp->dev->nic_info.dev_family == OCRDMA_GEN2_FAMILY && 384 return ((qp->dev->nic_info.dev_family == OCRDMA_GEN2_FAMILY &&
385 qp->id < 64) ? 24 : 16); 385 qp->id < 128) ? 24 : 16);
386} 386}
387 387
388static inline int is_cqe_valid(struct ocrdma_cq *cq, struct ocrdma_cqe *cqe) 388static inline int is_cqe_valid(struct ocrdma_cq *cq, struct ocrdma_cqe *cqe)