mptcp: add a new sysctl for make after break timeout
authorPaolo Abeni <pabeni@redhat.com>
Mon, 23 Oct 2023 20:44:34 +0000 (13:44 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Oct 2023 19:23:33 +0000 (12:23 -0700)
commitd866ae9aaa4325f1097e8b7a50f202348ca89b87
treeefc750560962403cdd71f5881bd50a36e130c68c
parentaad36cd32982d59470de6365f97f154c5af5d1d2
mptcp: add a new sysctl for make after break timeout

The MPTCP protocol allows sockets with no alive subflows to stay
in ESTABLISHED status for and user-defined timeout, to allow for
later subflows creation.

Currently such timeout is constant - TCP_TIMEWAIT_LEN. Let the
user-space configure them via a newly added sysctl, to better cope
with busy servers and simplify (make them faster) the relevant
pktdrill tests.

Note that the new know does not apply to orphaned MPTCP socket
waiting for the data_fin handshake completion: they always wait
TCP_TIMEWAIT_LEN.

Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20231023-send-net-next-20231023-2-v1-1-9dc60939d371@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/mptcp-sysctl.rst
net/mptcp/ctrl.c
net/mptcp/protocol.c
net/mptcp/protocol.h