diff options
author | Devesh Sharma <Devesh.Sharma@Emulex.Com> | 2014-02-04 07:26:55 +0100 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-04-03 17:29:36 +0200 |
commit | 2df84fa87f4d00299031b1335748c54176edfe87 (patch) | |
tree | 91479c415baa267489feb87b1b430158f67ae68c /drivers/infiniband/hw/ocrdma/ocrdma.h | |
parent | RDMA/ocrdma: EQ full catastrophe avoidance (diff) | |
download | linux-2df84fa87f4d00299031b1335748c54176edfe87.tar.xz linux-2df84fa87f4d00299031b1335748c54176edfe87.zip |
RDMA/ocrdma: SQ and RQ doorbell offset clean up
Introducing new macros to define SQ and RQ doorbell offset.
Signed-off-by: Devesh Sharma <devesh.sharma@emulex.com>
Signed-off-by: Selvin Xavier <selvin.xavier@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.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma.h b/drivers/infiniband/hw/ocrdma/ocrdma.h index 61f508e74823..1b51e67a26d7 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma.h +++ b/drivers/infiniband/hw/ocrdma/ocrdma.h @@ -386,13 +386,6 @@ static inline struct ocrdma_srq *get_ocrdma_srq(struct ib_srq *ibsrq) return container_of(ibsrq, struct ocrdma_srq, ibsrq); } - -static inline int ocrdma_get_num_posted_shift(struct ocrdma_qp *qp) -{ - return ((qp->dev->nic_info.dev_family == OCRDMA_GEN2_FAMILY && - qp->id < 128) ? 24 : 16); -} - static inline int is_cqe_valid(struct ocrdma_cq *cq, struct ocrdma_cqe *cqe) { int cqe_valid; |