Skip to content

BPF path manager, part 1

Geliang Tang mptcp 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 3 repliesIn review
  2. v39 patches 14 repliesSuperseded
  3. v236 patches 40 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v133 patches1 replySuperseded

Changes in v4 from the cover letter

- #4 drop "/* Called from the in-kernel PM only */" commend too.
- #5 drop 'out' label and if-statement in mptcp_pm_remove_addr_entry.
- drop #6 and #7.
- the last patch, add 'release_sock' label as Matt suggested.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mptcp: add mptcp_userspace_pm_lookup_addr helpernet/mptcp/pm_userspace.c+36 -350 replies
2/7mptcp: add mptcp_for_each_userspace_pm_addr macronet/mptcp/pm_userspace.c+7 -40 replies
3/7mptcp: add mptcp_userspace_pm_get_sock helpernet/mptcp/pm_userspace.c+47 -970 replies
4/7mptcp: move mptcp_pm_remove_addrs into pm_userspacenet/mptcp/pm_netlink.c net/mptcp/pm_userspace.c net/mptcp/protocol.h+40 -380 replies
5/7mptcp: drop free_list for deleting entriesnet/mptcp/pm_userspace.c net/mptcp/protocol.h+17 -280 replies
6/7mptcp: change local addr type of subflow_destroynet/mptcp/pm_userspace.c+11 -120 replies
7/7mptcp: drop useless "err = 0" in subflow_destroynet/mptcp/pm_userspace.c+10 -110 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMatthieu Baerts (NGI0)
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH mptcp-next v4 0/7] BPF path manager, part 1

From: Geliang Tang <[email protected]>

v4:
- #4 drop "/* Called from the in-kernel PM only */" commend too.
- #5 drop 'out' label and if-statement in mptcp_pm_remove_addr_entry.
- drop #6 and #7.
- the last patch, add 'release_sock' label as Matt suggested.

v3:
- address Matt's comments in v2 (thanks)
- only include cleanups and refactoring patches in this set.

v2:
- add BPF-related code in this set (32-36).

In order to implement BPF userspace path manager, it is necessary to unify the interfaces of the path manager. This set contains some cleanups and refactoring to unify the interfaces in kernel space. Finally, define a struct mptcp_pm_ops for a userspace path manager like this:

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,
			 mptcp_pm_addr_id_bitmap_t *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 (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 | 296 +++++++++++++++++----------------------
 net/mptcp/protocol.h     |   7 +-
 3 files changed, 146 insertions(+), 203 deletions(-)
Signature · 1 line
2.45.2