cleanups for PM interfaces
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest11 patches 0 repliesNew
- v310 patches 1 replySuperseded
- v29 patches 1 replySuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 8 patches | 2 replies | Superseded |
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | mptcp: add struct mptcp_id_bitmapnet/ net/ net/ +1 more | +33 | 0 replies | |
| 2/11 | mptcp: add mptcp_userspace_pm_get_sock helpernet/ | +44 | 0 replies | |
| 3/11 | mptcp: use __lookup_addr in pm_netlinknet/ | +7 | 0 replies | |
| 4/11 | mptcp: add mptcp_for_each_address macrosnet/ net/ | +11 | 0 replies | |
| 5/11 | mptcp: use sock_kfree_s instead of kfreenet/ | +2 | 0 replies | |
| 6/11 | mptcp: add lookup_addr for userspace pmnet/ | +29 | 0 replies | |
| 7/11 | mptcp: change remote as mptcp_addr_infonet/ | +4 | 0 replies | |
| 8/11 | mptcp: change local as mptcp_pm_addr_entrynet/ | +11 | 0 replies | |
| 9/11 | mptcp: make three pm wrappers staticnet/ net/ net/ | +27 | 0 replies | |
| 10/11 | mptcp: drop skb parameter of get_addrnet/ net/ net/ | +7 | 0 replies | |
| 11/11 | mptcp: drop skb parameter of set_flagsnet/ net/ net/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
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