[PATCH net-next 0/7] mptcp: pm: userspace: misc cleanups

Matthieu Baerts (NGI0) posted 7 patches 1 week ago
Failed in applying to current master (apply log)
net/mptcp/pm_netlink.c   |  46 ++------
net/mptcp/pm_userspace.c | 295 +++++++++++++++++++++--------------------------
net/mptcp/protocol.h     |   7 +-
3 files changed, 146 insertions(+), 202 deletions(-)
[PATCH net-next 0/7] mptcp: pm: userspace: misc cleanups
Posted by Matthieu Baerts (NGI0) 1 week ago
These cleanups lead the way to the unification of the path-manager
interfaces, and allow future extensions. The following patches are not
linked to each others, but are all related to the userspace
path-manager.

- Patch 1: add a new helper to reduce duplicated code.

- Patch 2: add a macro to iterate over the address list, clearer.

- Patch 3: reduce duplicated code to get the corresponding MPTCP socket.

- Patch 4: move userspace PM specific code out of the in-kernel one.

- Patch 5: pass an entry instead of a list with always one entry.

- Patch 6: uniform struct type used for the local addresses.

- Patch 7: simplify error handling.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Geliang Tang (7):
      mptcp: add mptcp_userspace_pm_lookup_addr helper
      mptcp: add mptcp_for_each_userspace_pm_addr macro
      mptcp: add mptcp_userspace_pm_get_sock helper
      mptcp: move mptcp_pm_remove_addrs into pm_userspace
      mptcp: drop free_list for deleting entries
      mptcp: change local addr type of subflow_destroy
      mptcp: drop useless "err = 0" in subflow_destroy

 net/mptcp/pm_netlink.c   |  46 ++------
 net/mptcp/pm_userspace.c | 295 +++++++++++++++++++++--------------------------
 net/mptcp/protocol.h     |   7 +-
 3 files changed, 146 insertions(+), 202 deletions(-)
---
base-commit: 2c27c7663390d28bc71e97500eb68e0ce2a7223f
change-id: 20241213-net-next-mptcp-pm-misc-cleanup-26c35aab74e6

Best regards,
-- 
Matthieu Baerts (NGI0) <matttbe@kernel.org>