All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH mptcp-next v2 0/3] mptcp: pm: kernel: retry subflows closed after an error
@ 2026-10-13  2:56 Anil Kaushik
  2026-10-13  2:56 ` [RFC PATCH mptcp-next v2 1/3] selftests: mptcp: connect: retry write() on EAGAIN Anil Kaushik
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Anil Kaushik @ 2026-10-13  2:56 UTC (permalink / raw)
  To: mptcp; +Cc: Anil Kaushik

A subflow closed after an error is never re-created, even once the path
is back (#440).

v2 has no extra list or timer. The PM opens a new subflow to the same
addresses right away, and if it fails, the same socket is used for the
next try. A new sysctl, net.mptcp.subflow_retries, sets the max tries.

Is a sysctl fine, or should it be a netlink setting?

Patch 1: I saw the EAGAIN error only with the new tests, also with the
retries disabled.

Changes in v2:
 - use the subflow sockets, no list or timer
 - sysctl is now the max number of tries
 - code moved to pm_kernel.c
 - Fixes tag on patch 1
 - one selftest with netfilter
 - Assisted-by on all patches

v1: https://lore.kernel.org/mptcp/20261012171740.464517-1-anilkaushikwireless@gmail.com/

Anil Kaushik (3):
  selftests: mptcp: connect: retry write() on EAGAIN
  mptcp: pm: kernel: retry subflows closed after an error
  selftests: mptcp: join: validate subflow retry after link failure

 Documentation/networking/mptcp-sysctl.rst     |  15 +++
 net/mptcp/ctrl.c                              |  13 ++
 net/mptcp/mib.c                               |   1 +
 net/mptcp/mib.h                               |   1 +
 net/mptcp/pm_kernel.c                         | 116 ++++++++++++++++++
 net/mptcp/protocol.c                          |   9 ++
 net/mptcp/protocol.h                          |  20 +++
 net/mptcp/subflow.c                           |  53 ++++++++
 .../selftests/net/mptcp/mptcp_connect.c       |   8 ++
 .../testing/selftests/net/mptcp/mptcp_join.sh |  90 ++++++++++++++
 10 files changed, 326 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-10-13  4:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13  2:56 [RFC PATCH mptcp-next v2 0/3] mptcp: pm: kernel: retry subflows closed after an error Anil Kaushik
2026-10-13  2:56 ` [RFC PATCH mptcp-next v2 1/3] selftests: mptcp: connect: retry write() on EAGAIN Anil Kaushik
2026-10-13  2:56 ` [RFC PATCH mptcp-next v2 2/3] mptcp: pm: kernel: retry subflows closed after an error Anil Kaushik
2026-10-13  3:11   ` sashiko-bot
2026-10-13  2:56 ` [RFC PATCH mptcp-next v2 3/3] selftests: mptcp: join: validate subflow retry after link failure Anil Kaushik
2026-10-13  4:11 ` [RFC PATCH mptcp-next v2 0/3] mptcp: pm: kernel: retry subflows closed after an error MPTCP CI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.