Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
From: "zhengbing.huang" <zhengbing.huang@easystack.cn>
To: drbd-dev@lists.linbit.com
Subject: [PATCH v2] rdma: Modify rdma_conn_param.rnr_retry to 7
Date: Tue,  8 Jul 2025 15:37:17 +0800	[thread overview]
Message-ID: <20250708073717.4077291-1-zhengbing.huang@easystack.cn> (raw)

During the sync process, we found that the
IB_WC_RNR_RETRY_EXC_ERR error always occurred, and then
the connection break. Then when the connection is restored,
this error occurs again, enter a loop.

When the IB_WC_RNR_RETRY_EXC_ERR error occurs,
it indicates that there is no rx_desc at the receive side currently.
Then we query that the current rnr_retry value is 0,
meane there is no retry.

So we modify rnr_retry to 7(max value), and the problem did not occur again.

Signed-off-by: zhengbing.huang <zhengbing.huang@easystack.cn>
---
 drbd/drbd_transport_rdma.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drbd/drbd_transport_rdma.c b/drbd/drbd_transport_rdma.c
index 30edfaf96..14392a33b 100644
--- a/drbd/drbd_transport_rdma.c
+++ b/drbd/drbd_transport_rdma.c
@@ -409,6 +409,7 @@ static struct rdma_conn_param dtr_conn_param = {
 	.responder_resources = 1,
 	.initiator_depth = 1,
 	.retry_count = 10,
+	.rnr_retry_count  = 7,
 };
 
 static u32 dtr_cm_to_lkey(struct dtr_cm *cm)
-- 
2.43.0


             reply	other threads:[~2025-07-08  7:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-08  7:37 zhengbing.huang [this message]
2025-07-30 14:23 ` [PATCH v2] rdma: Modify rdma_conn_param.rnr_retry to 7 Philipp Reisner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250708073717.4077291-1-zhengbing.huang@easystack.cn \
    --to=zhengbing.huang@easystack.cn \
    --cc=drbd-dev@lists.linbit.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox