Skip to content

Commit

Permalink
RDMA/erdma: Update default EQ depth to 4096 and max_send_wr to 8192
Browse files Browse the repository at this point in the history
Max EQ depth of hardware is 32K, the current default EQ depth is too small
for some applications, so change the default depth to 4096.
Max send WRs the hardware can support is 8K, but the driver limits the
value to 4K. Remove this limitation.

Fixes: be3cff0 ("RDMA/erdma: Add the hardware related definitions")
Fixes: db23ae6 ("RDMA/erdma: Add verbs header file")
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230320084652.16807-3-chengyou@linux.alibaba.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
  • Loading branch information
Cheng Xu authored and Leon Romanovsky committed Mar 20, 2023
1 parent 3fe26c0 commit 6256aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/erdma/erdma_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ struct erdma_reg_mr_sqe {
};

/* EQ related. */
#define ERDMA_DEFAULT_EQ_DEPTH 256
#define ERDMA_DEFAULT_EQ_DEPTH 4096

/* ceqe */
#define ERDMA_CEQE_HDR_DB_MASK BIT_ULL(63)
Expand Down
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/erdma/erdma_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/* RDMA Capability. */
#define ERDMA_MAX_PD (128 * 1024)
#define ERDMA_MAX_SEND_WR 4096
#define ERDMA_MAX_SEND_WR 8192
#define ERDMA_MAX_ORD 128
#define ERDMA_MAX_IRD 128
#define ERDMA_MAX_SGE_RD 1
Expand Down

0 comments on commit 6256aa9

Please sign in to comment.