diff options
author | Naresh Gottumukkala <bgottumukkala@emulex.com> | 2013-08-07 11:22:37 +0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-08-12 22:00:51 +0400 |
commit | 45e86b33ec8b33f9ed41d9f9005f9e663018f8f1 (patch) | |
tree | eca311e7455a7edba0c361afdb05996b4b42cb3e /drivers/infiniband/hw/ocrdma/ocrdma.h | |
parent | 7b9b1a596e0f37b463dfe3bc36b6d035c7450ca0 (diff) | |
download | linux-45e86b33ec8b33f9ed41d9f9005f9e663018f8f1.tar.xz |
RDMA/ocrdma: Cache recv DB until QP moved to RTR
1) In post recv, don't ring the DB doorbell if the QP is in RTR state.
Cache the DB calls, until the QP is moved to RTS state.
2) Add max_rd_sge support to dev->attr.
3) Code cleanup in alloc_pd path.
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma.h b/drivers/infiniband/hw/ocrdma/ocrdma.h index 8d54dc74ca77..e798837f1fe0 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma.h +++ b/drivers/infiniband/hw/ocrdma/ocrdma.h @@ -60,6 +60,7 @@ struct ocrdma_dev_attr { int max_send_sge; int max_recv_sge; int max_srq_sge; + int max_rdma_sge; int max_mr; u64 max_mr_size; u32 max_num_mr_pbl; @@ -287,6 +288,7 @@ struct ocrdma_qp { u32 qkey; bool dpp_enabled; u8 *ird_q_va; + u16 db_cache; }; struct ocrdma_hw_mr { |