Thread (2 messages) 2 messages, 2 authors, 2018-01-31

RE: [PATCH v3 06/13] SoftiWarp connection management

From: Bernard Metzler <hidden>
Date: 2018-01-31 17:28:26

-----"Steve Wise" [off-list ref] wrote: -----
To: "'Bernard Metzler'" <redacted>,
[off-list ref]
From: "Steve Wise" <redacted>
Date: 01/30/2018 10:27PM
Subject: RE: [PATCH v3 06/13] SoftiWarp connection management
quoted
Signed-off-by: Bernard Metzler <redacted>
---
 drivers/infiniband/sw/siw/siw_cm.c | 2184
++++++++++++++++++++++++++++++++++++
 drivers/infiniband/sw/siw/siw_cm.h |  156 +++
 2 files changed, 2340 insertions(+)
 create mode 100644 drivers/infiniband/sw/siw/siw_cm.c
 create mode 100644 drivers/infiniband/sw/siw/siw_cm.h
<snip>
quoted
diff --git a/drivers/infiniband/sw/siw/siw_cm.h

<snip>
quoted
+
+/*
+ * Connection initiator waits 10 seconds to receive an
+ * MPA reply after sending out MPA request. Reponder waits for
+ * 5 seconds for MPA request to arrive if new TCP connection
+ * was set up.
+ */
+#define MPAREQ_TIMEOUT	(HZ*10)
+#define MPAREP_TIMEOUT	(HZ*5)
+
These timeout times seem pretty low for a WAN link or even a brief
network
down event during MPA negotiation connection.   Any particular reason
for 10
and 5?

i picked those rather small numbers since it covers basically
only the latency after the TCP connection went up, so the
timer gets started only after the TCP connection was
established. at client side, we wait 5 seconds after sending the MPA
request to get the reply. on server side, we wait 10 seconds
for the MPA request, after we have accepted a new TCP connection.

maybe i shall make that longer? but the only real delay we have to
deal with is the server side application which thinks too long
if it shall 'accept' or 'reject' (maybe that is very artifical,
but i had to deal with cases of an application which never rejected/
accepted).

thanks
Bernard.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help