Skip to content

Commit 6256aa9

Browse files
hz-chengrleon
authored andcommitted
RDMA/erdma: Update default EQ depth to 4096 and max_send_wr to 8192
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>
1 parent 3fe26c0 commit 6256aa9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/infiniband/hw/erdma/erdma_hw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ struct erdma_reg_mr_sqe {
441441
};
442442

443443
/* EQ related. */
444-
#define ERDMA_DEFAULT_EQ_DEPTH 256
444+
#define ERDMA_DEFAULT_EQ_DEPTH 4096
445445

446446
/* ceqe */
447447
#define ERDMA_CEQE_HDR_DB_MASK BIT_ULL(63)

drivers/infiniband/hw/erdma/erdma_verbs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/* RDMA Capability. */
1313
#define ERDMA_MAX_PD (128 * 1024)
14-
#define ERDMA_MAX_SEND_WR 4096
14+
#define ERDMA_MAX_SEND_WR 8192
1515
#define ERDMA_MAX_ORD 128
1616
#define ERDMA_MAX_IRD 128
1717
#define ERDMA_MAX_SGE_RD 1

0 commit comments

Comments
 (0)