[PATCH net-next 0/4] mptcp: unify PM interfaces

From: Matthieu Baerts
Date: Thu Jun 08 2023 - 09:21:16 EST


These patches from Geliang better isolate the two MPTCP path-managers by
avoiding calling userspace PM functions from the in-kernel PM. Instead,
new functions declared in pm.c directly dispatch to the right PM.

In addition to have a clearer code, this also avoids a bit of duplicated
checks.

This is a refactoring, there is no behaviour change intended here.

Signed-off-by: Matthieu Baerts <matthieu.baerts@xxxxxxxxxxxx>
---
Geliang Tang (4):
mptcp: export local_address
mptcp: unify pm get_local_id interfaces
mptcp: unify pm get_flags_and_ifindex_by_id
mptcp: unify pm set_flags interfaces

net/mptcp/pm.c | 41 ++++++++++++++-
net/mptcp/pm_netlink.c | 132 ++++++++++++++++++++---------------------------
net/mptcp/pm_userspace.c | 3 --
net/mptcp/protocol.h | 9 +++-
4 files changed, 103 insertions(+), 82 deletions(-)
---
base-commit: 4a56212774acf71a7356026fb11b78228a7ad24d
change-id: 20230608-upstream-net-next-20230608-mptcp-unify-pm-interfaces-497ff5de464e

Best regards,
--
Matthieu Baerts <matthieu.baerts@xxxxxxxxxxxx>