Skip to content

cleanups for PM interfaces

Geliang Tang mptcp 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 0 repliesNew
  2. v310 patches 1 replySuperseded
  3. v29 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches2 repliesSuperseded

Changes in v4 from the cover letter

- a new patch, add mptcp_for_each_address() and
mptcp_for_each_address_safe() macros.
- update commit logs.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11mptcp: add struct mptcp_id_bitmapnet/mptcp/pm.c net/mptcp/pm_netlink.c net/mptcp/pm_userspace.c +1 more+33 -310 replies
2/11mptcp: add mptcp_userspace_pm_get_sock helpernet/mptcp/pm_userspace.c+44 -930 replies
3/11mptcp: use __lookup_addr in pm_netlinknet/mptcp/pm_netlink.c+7 -130 replies
4/11mptcp: add mptcp_for_each_address macrosnet/mptcp/pm_userspace.c net/mptcp/protocol.h+11 -60 replies
5/11mptcp: use sock_kfree_s instead of kfreenet/mptcp/pm_userspace.c+2 -10 replies
6/11mptcp: add lookup_addr for userspace pmnet/mptcp/pm_userspace.c+29 -270 replies
7/11mptcp: change remote as mptcp_addr_infonet/mptcp/pm_userspace.c+4 -40 replies
8/11mptcp: change local as mptcp_pm_addr_entrynet/mptcp/pm_userspace.c+11 -120 replies
9/11mptcp: make three pm wrappers staticnet/mptcp/pm.c net/mptcp/pm_netlink.c net/mptcp/protocol.h+27 -340 replies
10/11mptcp: drop skb parameter of get_addrnet/mptcp/pm_netlink.c net/mptcp/pm_userspace.c net/mptcp/protocol.h+7 -90 replies
11/11mptcp: drop skb parameter of set_flagsnet/mptcp/pm_netlink.c net/mptcp/pm_userspace.c net/mptcp/protocol.h+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH mptcp-next v4 00/11] cleanups for PM interfaces

From: Geliang Tang <[email protected]>

v4:
- a new patch, add mptcp_for_each_address() and
mptcp_for_each_address_safe() macros.
- update commit logs.

v3:
- a new patch, use sock_kfree_s instead of kfree.

v2:
- add a new helper mptcp_userspace_pm_get_sock.

In order to implement BPF userspace path manager, it is necessary to unify the interfaces of the path manager. This set contains some cleanups for unify the interfaces.

struct mptcp_pm_ops {
        int (*address_announce)(struct mptcp_sock *msk,
                                struct mptcp_pm_addr_entry *local);
        int (*address_remove)(struct mptcp_sock *msk, u8 id);
        int (*subflow_create)(struct mptcp_sock *msk,
                              struct mptcp_pm_addr_entry *local,
                              struct mptcp_addr_info *remote);
        int (*subflow_destroy)(struct mptcp_sock *msk,
                               struct mptcp_pm_addr_entry *local,
                               struct mptcp_addr_info *remote);
        int (*get_local_id)(struct mptcp_sock *msk,
                            struct mptcp_pm_addr_entry *local);
        u8 (*get_flags)(struct mptcp_sock *msk,
                        struct mptcp_addr_info *skc);
        struct mptcp_pm_addr_entry *(*get_addr)(struct mptcp_sock *msk,
                                                u8 id);
        int (*dump_addr)(struct mptcp_sock *msk,
                         struct mptcp_id_bitmap *bitmap);
        int (*set_flags)(struct mptcp_sock *msk,
                         struct mptcp_pm_addr_entry *local,
                         struct mptcp_addr_info *remote);

        u8                      type;
        struct module           *owner;
        struct list_head        list;

        void (*init)(struct mptcp_sock *msk);
        void (*release)(struct mptcp_sock *msk);
} ____cacheline_aligned_in_smp;

Geliang Tang (11):
mptcp: add struct mptcp_id_bitmap
mptcp: add mptcp_userspace_pm_get_sock helper
mptcp: use __lookup_addr in pm_netlink
mptcp: add mptcp_for_each_address macros
mptcp: use sock_kfree_s instead of kfree
mptcp: add lookup_addr for userspace pm
mptcp: change remote as mptcp_addr_info
mptcp: change local as mptcp_pm_addr_entry
mptcp: make three pm wrappers static
mptcp: drop skb parameter of get_addr
mptcp: drop skb parameter of set_flags

 net/mptcp/pm.c           |  25 +---
 net/mptcp/pm_netlink.c   |  99 +++++++++-------
 net/mptcp/pm_userspace.c | 250 ++++++++++++++++-----------------------
 net/mptcp/protocol.h     |  23 ++--
 4 files changed, 171 insertions(+), 226 deletions(-)
Signature · 1 line
2.43.0