mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
net/smc: Introduce a specific sysctl for TEST_LINK time
SMC-R tests the viability of link by sending out TEST_LINK LLC messages over RoCE fabric when connections on link have been idle for a time longer than keepalive interval (testlink time). But using tcp_keepalive_time as testlink time maybe not quite suitable because it is default no less than two hours[1], which is too long for single link to find peer dead. The active host will still use peer-dead link (QP) sending messages, and can't find out until get IB_WC_RETRY_EXC_ERR error CQEs, which takes more time than TEST_LINK timeout (SMC_LLC_WAIT_TIME) normally. So this patch introduces a independent sysctl for SMC-R to set link keepalive time, in order to detect link down in time. The default value is 30 seconds. [1] https://www.rfc-editor.org/rfc/rfc1122#page-101 Signed-off-by: Wen Gu <guwen@linux.alibaba.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
@@ -34,3 +34,10 @@ smcr_buf_type - INTEGER
|
||||
- 1 - Use virtually contiguous buffers
|
||||
- 2 - Mixed use of the two types. Try physically contiguous buffers first.
|
||||
If not available, use virtually contiguous buffers then.
|
||||
|
||||
smcr_testlink_time - INTEGER
|
||||
How frequently SMC-R link sends out TEST_LINK LLC messages to confirm
|
||||
viability, after the last activity of connections on it. Value 0 means
|
||||
disabling TEST_LINK.
|
||||
|
||||
Default: 30 seconds.
|
||||
|
||||
Reference in New Issue
Block a user