aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorWen Gu <guwen@linux.alibaba.com>2022-09-20 17:52:21 +0800
committerPaolo Abeni <pabeni@redhat.com>2022-09-22 12:58:21 +0200
commit77eee32514314209961af5c2982e871ecb364445 (patch)
tree36a7bf8259b6498405019cf715c2894265b6737f /include/net/netns
parentnet: ethernet: altera: TSE: fix error return code in altera_tse_probe() (diff)
downloadlinux-dev-77eee32514314209961af5c2982e871ecb364445.tar.xz
linux-dev-77eee32514314209961af5c2982e871ecb364445.zip
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>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/smc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/smc.h b/include/net/netns/smc.h
index 2adbe2b245df..d295e2c10dca 100644
--- a/include/net/netns/smc.h
+++ b/include/net/netns/smc.h
@@ -19,5 +19,6 @@ struct netns_smc {
#endif
unsigned int sysctl_autocorking_size;
unsigned int sysctl_smcr_buf_type;
+ int sysctl_smcr_testlink_time;
};
#endif