[PATCH iproute2-next 0/2] mptcp: limits: add subflow_retries

Anil Kaushik posted 2 patches 4 days, 1 hour ago
Failed in applying to current master (apply log)
include/uapi/linux/mptcp_pm.h |  1 +
ip/ipmptcp.c                  | 21 ++++++++++++++++++++-
man/man8/ip-mptcp.8           | 10 ++++++++++
3 files changed, 31 insertions(+), 1 deletion(-)
[PATCH iproute2-next 0/2] mptcp: limits: add subflow_retries
Posted by Anil Kaushik 4 days, 1 hour ago
This adds the new subflow-retries limit of the in-kernel path manager to
"ip mptcp limits", as Matt suggested on the kernel series:

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

Patch 1 adds the new attribute to the copied uapi header. It is only
needed until the iproute2 maintainers update the headers, once the
kernel part is merged.

Patch 2 adds "subflow_retries" to "ip mptcp limits set" and "show", and
to the man page.

Tested in a VM with the kernel series applied: show, set, a partial set
keeping the other limits, JSON output, and the maximum (127 accepted,
128 refused by the kernel).

With this ip, "pm_netlink.sh -i" from the v15 kernel series fails the
"set limits" check, because ip now shows the new limit. I have a fix for
the selftest, which also runs the subflow-retries checks with ip. I can
squash it in the pm_netlink.sh patch of the next version of the series.

I used an LLM to help write and review these patches. I checked and
tested every change myself.

Anil Kaushik (2):
  uapi: mptcp: add MPTCP_PM_ATTR_SUBFLOW_RETRIES
  mptcp: limits: add subflow_retries

 include/uapi/linux/mptcp_pm.h |  1 +
 ip/ipmptcp.c                  | 21 ++++++++++++++++++++-
 man/man8/ip-mptcp.8           | 10 ++++++++++
 3 files changed, 31 insertions(+), 1 deletion(-)


base-commit: 87cb3f4198507331b9308689d4a726d17db63dd3
-- 
2.25.1
Re: [PATCH iproute2-next 0/2] mptcp: limits: add subflow_retries
Posted by Matthieu Baerts 4 days, 1 hour ago
Hi Anil,

On 19/11/2026 19:45, Anil Kaushik wrote:
> This adds the new subflow-retries limit of the in-kernel path manager to
> "ip mptcp limits", as Matt suggested on the kernel series:
> 
> https://lore.kernel.org/mptcp/20261103085244.23064-1-anilkaushikwireless@gmail.com/
> 
> Patch 1 adds the new attribute to the copied uapi header. It is only
> needed until the iproute2 maintainers update the headers, once the
> kernel part is merged.
> 
> Patch 2 adds "subflow_retries" to "ip mptcp limits set" and "show", and
> to the man page.

I didn't review this in details, but I'm just thinking that you might
also want to expose the new limit_subflow_retries counter in ss.

Just note that ss.c is probably going to be split, see:

https://lore.kernel.org/20261119024049.3109143-1-stephen@networkplumber.org

(if you send a v2, please use [iproute2-mptcp] prefix, just not to
confuse with the ones that will be sent upstream)

> With this ip, "pm_netlink.sh -i" from the v15 kernel series fails the
> "set limits" check, because ip now shows the new limit. I have a fix for
> the selftest, which also runs the subflow-retries checks with ip. I can
> squash it in the pm_netlink.sh patch of the next version of the series.
Ah yes, good point. Yes, we will need it. I didn't review v15 yet, it
can wait or feel free to send a v16 if you already have it.

Note that the selftests ideally need to support older kernel version (so
without recent features) and older tools, e.g. IPRoute2 without your
patch. (except if thing get unreadable)

Cheers,
Matt
-- 
Sponsored by the NGI0 Core fund.