[PATCH net-next 00/10] mptcp: pm: misc cleanups, part 3
From: Matthieu Baerts (NGI0)
Date: Fri Feb 21 2025 - 10:48:01 EST
These cleanups lead the way to the unification of the path-manager
interfaces, and allow future extensions. The following patches are not
all linked to each others, but are all related to the path-managers,
except the last three.
- Patch 1: remove unused returned value in mptcp_nl_set_flags().
- Patch 2: new flag: avoid iterating over all connections if not needed.
- Patch 3: add a build check making sure there is enough space in cb-ctx.
- Patch 4: new mptcp_pm_genl_fill_addr helper to reduce duplicated code.
- Patch 5: simplify userspace_pm_append_new_local_addr helper.
- Patch 6: drop unneeded inet6_sk().
- Patch 7: use ipv6_addr_equal() instead of !ipv6_addr_cmp()
- Patch 8: scheduler: split an interface in two.
- Patch 9: scheduler: save 64 bytes of currently unused data.
- Patch 10: small optimisation to exit early in case of retransmissions.
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>
---
Geliang Tang (6):
mptcp: pm: add a build check for userspace_pm_dump_addr
mptcp: pm: add mptcp_pm_genl_fill_addr helper
mptcp: pm: drop match in userspace_pm_append_new_local_addr
mptcp: pm: drop inet6_sk after inet_sk
mptcp: pm: use ipv6_addr_equal in addresses_equal
mptcp: sched: split get_subflow interface into two
Matthieu Baerts (NGI0) (4):
mptcp: pm: remove unused ret value to set flags
mptcp: pm: change to fullmesh only for 'subflow'
mptcp: sched: reduce size for unused data
mptcp: blackhole: avoid checking the state twice
include/net/mptcp.h | 5 +++--
net/mptcp/ctrl.c | 32 ++++++++++++++++++--------------
net/mptcp/pm.c | 21 +++++++++++++++++++++
net/mptcp/pm_netlink.c | 46 ++++++++++++++++------------------------------
net/mptcp/pm_userspace.c | 29 +++++++----------------------
net/mptcp/protocol.h | 3 +++
net/mptcp/sched.c | 39 ++++++++++++++++++++++++++-------------
7 files changed, 94 insertions(+), 81 deletions(-)
---
base-commit: bb3bb6c92e5719c0f5d7adb9d34db7e76705ac33
change-id: 20250221-net-next-mptcp-pm-misc-cleanup-3-51e9c67a95a6
Best regards,
--
Matthieu Baerts (NGI0) <matttbe@xxxxxxxxxx>