Skip to content

Commit 6d09f6f

Browse files
jinpuwangrleon
authored andcommitted
RDMA/rtrs-clt: Fix the max_send_wr setting
For each write request, we need Request, Response Memory Registration, Local Invalidate. Fixes: 6a98d71 ("RDMA/rtrs: client: main functionality") Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Reviewed-by: Md Haris Iqbal <haris.iqbal@ionos.com> Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com> Link: https://lore.kernel.org/r/20231120154146.920486-7-haris.iqbal@ionos.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
1 parent c4d32e7 commit 6d09f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/ulp/rtrs/rtrs-clt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ static int create_con_cq_qp(struct rtrs_clt_con *con)
16991699
clt_path->s.dev_ref++;
17001700
max_send_wr = min_t(int, wr_limit,
17011701
/* QD * (REQ + RSP + FR REGS or INVS) + drain */
1702-
clt_path->queue_depth * 3 + 1);
1702+
clt_path->queue_depth * 4 + 1);
17031703
max_recv_wr = min_t(int, wr_limit,
17041704
clt_path->queue_depth * 3 + 1);
17051705
max_send_sge = 2;

0 commit comments

Comments
 (0)