BPF path manager, part 3
Subsystems (2)
Geliang Tang
reviewerv3 cover BPF path manager, part 3
From: Geliang Tang <[email protected]>
v3:
- drop "mptcp: update address type of get_local_id".
v2:
- a new patch "hold msk lock before removing id 0 address"
Drop the patch "mptcp: reuse sending nlmsg code in dump_addr", add a new helper mptcp_pm_genl_fill_addr() to save the duplicated code.
Define struct mptcp_pm_addr_id_bitmap in protocol.h, instead of defining mptcp_pm_addr_id_bitmap_t in include/net/mptcp.h, since get_addr() and dump_addr() interfaces of BPF userspace pm is dropped as Matt suggested.
Geliang Tang (6):
mptcp: add mptcp_pm_genl_fill_addr helper
mptcp: add struct mptcp_pm_addr_id_bitmap
mptcp: drop inet6_sk in mptcp_nl_find_ssk
mptcp: drop match in userspace_pm_append_new_local_addr
mptcp: hold msk lock before removing id 0 address
mptcp: change is_backup interfaces as get_flags
net/mptcp/pm.c | 28 +++++++++++++++-- net/mptcp/pm_netlink.c | 21 ++++--------- net/mptcp/pm_userspace.c | 67 +++++++++++++--------------------------- net/mptcp/protocol.h | 13 ++++++-- 4 files changed, 64 insertions(+), 65 deletions(-)
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH v3 1/6 mptcp: add mptcp_pm_genl_fill_addr helper
From: Geliang Tang <[email protected]>
To save some redundant code in dump_addr() interfaces of both the netlink PM and userspace PM, the code that calls netlink message helpers (genlmsg_put/cancel/end) and mptcp_nl_fill_addr() is wrapped into a new helper mptcp_pm_genl_fill_addr().
This helper will also be used in BPF path managers.
--- net/mptcp/pm.c | 21 +++++++++++++++++++++ net/mptcp/pm_netlink.c | 12 +----------- net/mptcp/pm_userspace.c | 12 +----------- net/mptcp/protocol.h | 3 +++ 4 files changed, 26 insertions(+), 22 deletions(-)
net/mptcp/pm.c +21 -0
@@ -489,6 +489,27 @@ int mptcp_pm_nl_get_addr_doit(struct sk_buff *skb, struct genl_info *info)return ret; } +int mptcp_pm_genl_fill_addr (struct sk_buff *msg, +struct netlink_callback *cb, +struct mptcp_pm_addr_entry *entry) +{ +void *hdr; + + hdr =genlmsg_put (msg,NETLINK_CB (cb->skb).portid, + cb->nlh->nlmsg_seq, &mptcp_genl_family, +NLM_F_MULTI ,MPTCP_PM_CMD_GET_ADDR ); +if (!hdr) +return -EINVAL ; + +if (mptcp_nl_fill_addr (msg, entry) <0 ) { +genlmsg_cancel (msg, hdr); +return -EINVAL ; + } + +genlmsg_end (msg, hdr); +return 0 ; +} +static int mptcp_pm_dump_addr (struct sk_buff *msg,struct netlink_callback *cb) {const struct genl_info *info =genl_info_dump (cb);
net/mptcp/pm_netlink.c +1 -11
@@ -1798,7 +1798,6 @@ int mptcp_pm_nl_dump_addr(struct sk_buff *msg,struct mptcp_pm_addr_entry *entry;struct pm_nl_pernet *pernet;int id = cb->args[0 ]; -void *hdr;int i; pernet =pm_nl_get_pernet (net);
@@ -1813,19 +1812,10 @@ int mptcp_pm_nl_dump_addr(struct sk_buff *msg,if (entry->addr.id <= id)continue ; - hdr =genlmsg_put (msg,NETLINK_CB (cb->skb).portid, - cb->nlh->nlmsg_seq, &mptcp_genl_family, -NLM_F_MULTI ,MPTCP_PM_CMD_GET_ADDR ); -if (!hdr) +if (mptcp_pm_genl_fill_addr (msg, cb, entry))break ; -if (mptcp_nl_fill_addr (msg, entry) <0 ) { -genlmsg_cancel (msg, hdr); -break ; - } - id = entry->addr.id; -genlmsg_end (msg, hdr); } }rcu_read_unlock ();
net/mptcp/pm_userspace.c +1 -11
@@ -641,7 +641,6 @@ int mptcp_userspace_pm_dump_addr(struct sk_buff *msg,struct mptcp_sock *msk;int ret = -EINVAL ;struct sock *sk; -void *hdr; bitmap = (struct id_bitmap *)cb->ctx;
@@ -657,19 +656,10 @@ int mptcp_userspace_pm_dump_addr(struct sk_buff *msg,if (test_bit (entry->addr.id, bitmap->map))continue ; - hdr =genlmsg_put (msg,NETLINK_CB (cb->skb).portid, - cb->nlh->nlmsg_seq, &mptcp_genl_family, -NLM_F_MULTI ,MPTCP_PM_CMD_GET_ADDR ); -if (!hdr) +if (mptcp_pm_genl_fill_addr (msg, cb, entry))break ; -if (mptcp_nl_fill_addr (msg, entry) <0 ) { -genlmsg_cancel (msg, hdr); -break ; - } -__set_bit (entry->addr.id, bitmap->map); -genlmsg_end (msg, hdr); }spin_unlock_bh (&msk->pm.lock);release_sock (sk);
net/mptcp/protocol.h +3 -0
@@ -1060,6 +1060,9 @@ void mptcp_fastopen_subflow_synack_set_params(struct mptcp_subflow_context *subf struct request_sock *req);int mptcp_nl_fill_addr (struct sk_buff *skb,struct mptcp_pm_addr_entry *entry); +int mptcp_pm_genl_fill_addr (struct sk_buff *msg, +struct netlink_callback *cb, +struct mptcp_pm_addr_entry *entry);static inline bool mptcp_pm_should_add_signal (struct mptcp_sock *msk) {
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH v3 2/6 mptcp: add struct mptcp_pm_addr_id_bitmap
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
To simplify the use of bitmap in BPF, a new type for MPTCP userspace pm id bitmap, struct mptcp_pm_addr_id_bitmap is defined. Because there's no way to use DECLARE_BITMAP macro in BPF program, and it's not easy to reimplement it in BPF.
--- net/mptcp/pm_userspace.c | 14 ++++++-------- net/mptcp/protocol.h | 4 ++++ 2 files changed, 10 insertions(+), 8 deletions(-)
net/mptcp/pm_userspace.c +6 -8
@@ -47,7 +47,7 @@ static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk, struct mptcp_pm_addr_entry *entry, bool needs_id) { - DECLARE_BITMAP(id_bitmap, MPTCP_PM_MAX_ADDR_ID + 1); +struct mptcp_pm_addr_id_bitmap id_bitmap;struct mptcp_pm_addr_entry *match =NULL ;struct sock *sk = (struct sock *)msk;struct mptcp_pm_addr_entry *e;
@@ -55,7 +55,7 @@ static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,bool id_match = false;int ret = -EINVAL ; -bitmap_zero (id_bitmap,MPTCP_PM_MAX_ADDR_ID +1 ); +bitmap_zero (id_bitmap.map,MPTCP_PM_MAX_ADDR_ID +1 );spin_lock_bh (&msk->pm.lock);mptcp_for_each_userspace_pm_addr (msk, e) {
@@ -69,7 +69,7 @@ static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk, }else if (addr_match || id_match) {break ; } -__set_bit (e->addr.id, id_bitmap); +__set_bit (e->addr.id, id_bitmap.map); }if (!match && !addr_match && !id_match) {
@@ -84,7 +84,7 @@ static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk, *e = *entry;if (!e->addr.id && needs_id) - e->addr.id =find_next_zero_bit (id_bitmap, + e->addr.id =find_next_zero_bit (id_bitmap.map,MPTCP_PM_MAX_ADDR_ID +1 ,1 );list_add_tail_rcu (&e->list, &msk->pm.userspace_pm_local_addr_list);
@@ -633,16 +633,14 @@ int mptcp_userspace_pm_set_flags(struct mptcp_pm_addr_entry *local,int mptcp_userspace_pm_dump_addr (struct sk_buff *msg,struct netlink_callback *cb) { -struct id_bitmap { - DECLARE_BITMAP(map, MPTCP_PM_MAX_ADDR_ID + 1); - } *bitmap;const struct genl_info *info =genl_info_dump (cb); +struct mptcp_pm_addr_id_bitmap *bitmap;struct mptcp_pm_addr_entry *entry;struct mptcp_sock *msk;int ret = -EINVAL ;struct sock *sk; - bitmap = (struct id_bitmap *)cb->ctx; + bitmap = (struct mptcp_pm_addr_id_bitmap *)cb->ctx; msk =mptcp_userspace_pm_get_sock (info);if (!msk)
net/mptcp/protocol.h +4 -0
@@ -212,6 +212,10 @@ enum mptcp_addr_signal_status {/* max value of mptcp_addr_info.id */ #define MPTCP_PM_MAX_ADDR_ID U8_MAX +struct mptcp_pm_addr_id_bitmap { + DECLARE_BITMAP(map, MPTCP_PM_MAX_ADDR_ID + 1); +}; +struct mptcp_pm_data {struct mptcp_addr_info local;struct mptcp_addr_info remote;
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH v3 3/6 mptcp: drop inet6_sk in mptcp_nl_find_ssk
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
In mptcp_nl_find_ssk(), 'issk' has already been got through inet_sk(). No need to use inet6_sk() to get 'pinfo' again, just use issk->pinet6 instead. This patch also drops this 'pinfo' variable.
--- net/mptcp/pm_userspace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
net/mptcp/pm_userspace.c +1 -3
@@ -465,9 +465,7 @@ static struct sock *mptcp_nl_find_ssk(struct mptcp_sock *msk,break ;#if IS_ENABLED (CONFIG_MPTCP_IPV6 )case AF_INET6 : { -const struct ipv6_pinfo *pinfo =inet6_sk (ssk); - -if (!ipv6_addr_equal (&local->addr6, &pinfo->saddr) || +if (!ipv6_addr_equal (&local->addr6, &issk->pinet6->saddr) || !ipv6_addr_equal (&remote->addr6, &ssk->sk_v6_daddr))continue ;break ;
Signature · 1 line
2.43.0
Geliang Tang
reviewerRe: [PATCH mptcp-next v3 3/6] mptcp: drop inet6_sk in mptcp_nl_find_ssk
Quoted 28 lines · Geliang Tang
From: Geliang Tang <[email protected]>
In
mptcp_nl_find_ssk(), 'issk' has already been got throughinet_sk(). No
need to useinet6_sk()to get 'pinfo' again, just useissk->pinet6instead.
This patch also drops this 'pinfo' variable.Signed-off-by Geliang Tang <[email protected]>---
net/mptcp/pm_userspace.c | 4 +---1 file changed, 1 insertion(+), 3 deletions(-)net/mptcp/pm_userspace.c +0
-3@@ -465,9 +465,7 @@ static struct sock *mptcp_nl_find_ssk(struct mptcp_sock *msk, break; #if IS_ENABLED(CONFIG_MPTCP_IPV6) case AF_INET6: { - const struct ipv6_pinfo *pinfo = inet6_sk(ssk); - - if (!ipv6_addr_equal(&local->addr6, &pinfo-Quoted 1 line
saddr) ||
net/mptcp/pm_userspace.c +1
-0+ if (!ipv6_addr_equal(&local->addr6, &issk-
Quoted 1 line
Quoted 1 line
pinet6->saddr) ||
CI reports a warning here:
WARNING: line length of 84 exceeds 80 columns
#27: FILE: net/mptcp/pm_userspace.c:468:
Will update this in the next version.
Thanks,
-Geliang
Quoted 4 lines
!ipv6_addr_equal(&remote->addr6, &ssk-
Quoted 1 line
sk_v6_daddr))continue;
break;
Matthieu Baerts
maintainerRe: [PATCH mptcp-next v3 3/6] mptcp: drop inet6_sk in mptcp_nl_find_ssk
Hi Geliang,
16 Jan 2025 03:41:25 Geliang Tang <[email protected]>:
Quoted 27 lines · Geliang Tang
Quoted 26 lines
From: Geliang Tang <[email protected]>
In
mptcp_nl_find_ssk(), 'issk' has already been got throughinet_sk(). No
need to useinet6_sk()to get 'pinfo' again, just useissk->pinet6instead.
This patch also drops this 'pinfo' variable.Signed-off-by Geliang Tang <[email protected]>---
net/mptcp/pm_userspace.c | 4 +---1 file changed, 1 insertion(+), 3 deletions(-)net/mptcp/pm_userspace.c +0
-3@@ -465,9 +465,7 @@ static struct sock *mptcp_nl_find_ssk(struct mptcp_sock *msk, break; #if IS_ENABLED(CONFIG_MPTCP_IPV6) case AF_INET6: { - const struct ipv6_pinfo *pinfo = inet6_sk(ssk); - - if (!ipv6_addr_equal(&local->addr6, &pinfo-
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
saddr) ||
+ if (!ipv6_addr_equal(&local->addr6, &issk-
Quoted 1 line
pinet6->saddr) ||CI reports a warning here:
WARNING: line length of 84 exceeds 80 columns
#27: FILE:net/mptcp/pm_userspace.c:468:
Please note that this is a recommendation and not a strict rule. It means that if going a bit over 80 helps for the clarity, that's
fine: no need to break lines and have something hard to read.
So up to you: check how it looks like when breaking the lines before 80 characters.
Cheers,
Matt
Geliang Tang
reviewerRe: [PATCH mptcp-next v3 3/6] mptcp: drop inet6_sk in mptcp_nl_find_ssk
Hi Matt,
Quoted 41 lines · Matthieu Baerts
Hi Geliang,
16 Jan 2025 03:41:25 Geliang Tang <[email protected]>:
Quoted 28 lines · Geliang Tang
Quoted 27 lines
From: Geliang Tang <[email protected]>
In
mptcp_nl_find_ssk(), 'issk' has already been got throughinet_sk(). No
need to useinet6_sk()to get 'pinfo' again, just use issk-Quoted 1 line
pinet6
instead.
This patch also drops this 'pinfo' variable.Signed-off-by Geliang Tang <[email protected]>---
net/mptcp/pm_userspace.c | 4 +---1 file changed, 1 insertion(+), 3 deletions(-)net/mptcp/pm_userspace.c +0
-3@@ -465,9 +465,7 @@ static struct sock *mptcp_nl_find_ssk(struct mptcp_sock *msk, break; #if IS_ENABLED(CONFIG_MPTCP_IPV6) case AF_INET6: { - const struct ipv6_pinfo *pinfo = inet6_sk(ssk); - - if (!ipv6_addr_equal(&local->addr6, &pinfo-Quoted 8 lines
Quoted 3 lines
Quoted 1 line
saddr) ||
+ if (!ipv6_addr_equal(&local->addr6, &issk-
Quoted 1 line
pinet6->saddr) ||CI reports a warning here:
WARNING: line length of 84 exceeds 80 columns
#27: FILE:net/mptcp/pm_userspace.c:468:
Quoted 6 lines
Please note that this is a recommendation and not a strict rule. It means that if going a bit over 80 helps for the clarity, that's
fine: no need to break lines and have something hard to read.So up to you: check how it looks like when breaking the lines before 80 characters.
If so, I prefer not to break the lines and ignore this warning (recommendation).
Thanks,
-Geliang
Quoted 3 lines
Cheers,
Matt
Geliang Tang
reviewerPATCH v3 4/6 mptcp: drop match in userspace_pm_append_new_local_addr
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
The variable 'match' in mptcp_userspace_pm_append_new_local_addr() is a redundant one, and this patch drops it.
No need to define 'match' as 'struct mptcp_pm_addr_entry *' type. In this function, it's only used to check whether it's NULL. It can be defined as a Boolean one.
Also other variables 'addr_match' and 'id_match' make 'match' a redundant one, which can be replaced by directly checking 'addr_match && id_match'.
--- net/mptcp/pm_userspace.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
net/mptcp/pm_userspace.c +3 -8
@@ -48,7 +48,6 @@ static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk, bool needs_id) {struct mptcp_pm_addr_id_bitmap id_bitmap; -struct mptcp_pm_addr_entry *match =NULL ;struct sock *sk = (struct sock *)msk;struct mptcp_pm_addr_entry *e;bool addr_match = false;
@@ -63,16 +62,12 @@ static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,if (addr_match && entry->addr.id ==0 && needs_id) entry->addr.id = e->addr.id; id_match = (e->addr.id == entry->addr.id); -if (addr_match && id_match) { - match = e; +if (addr_match || id_match)break ; - }else if (addr_match || id_match) { -break ; - }__set_bit (e->addr.id, id_bitmap.map); } -if (!match && !addr_match && !id_match) { +if (!addr_match && !id_match) {/* Memory for the entry is allocated from the * sock option buffer. */
@@ -90,7 +85,7 @@ static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk,list_add_tail_rcu (&e->list, &msk->pm.userspace_pm_local_addr_list); msk->pm.local_addr_used++; ret = e->addr.id; - }else if (match) { + }else if (addr_match && id_match) { ret = entry->addr.id; }
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH v3 5/6 mptcp: hold msk lock before removing id 0 address
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
In mptcp_pm_nl_remove_doit(), move 'lock_sock(sk)' before invoking the function mptcp_userspace_pm_remove_id_zero_address(). Then no need to hold and release this lock in this function. And 'sk' and 'err' variables and 'remove_err' label in it can be dropped.
--- net/mptcp/pm_userspace.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-)
net/mptcp/pm_userspace.c +5 -11
@@ -256,11 +256,8 @@ static int mptcp_userspace_pm_remove_id_zero_address(struct mptcp_sock *msk) {struct mptcp_rm_list list = { .nr =0 };struct mptcp_subflow_context *subflow; -struct sock *sk = (struct sock *)msk;bool has_id_0 = false; -int err = -EINVAL ; -lock_sock (sk);mptcp_for_each_subflow (msk, subflow) {if (READ_ONCE (subflow->local_id) ==0 ) { has_id_0 = true;
@@ -268,7 +265,7 @@ static int mptcp_userspace_pm_remove_id_zero_address(struct mptcp_sock *msk) } }if (!has_id_0) - goto remove_err; +return -EINVAL ; list.ids[list.nr++] =0 ;
@@ -276,11 +273,7 @@ static int mptcp_userspace_pm_remove_id_zero_address(struct mptcp_sock *msk)mptcp_pm_remove_addr (msk, &list);spin_unlock_bh (&msk->pm.lock); - err =0 ; - -remove_err: -release_sock (sk); -return err; +return 0 ; } void mptcp_pm_remove_addr_entry(struct mptcp_sock *msk,
@@ -324,13 +317,14 @@ int mptcp_pm_nl_remove_doit(struct sk_buff *skb, struct genl_info *info) sk = (struct sock *)msk; +lock_sock (sk); +if (id_val ==0 ) { err =mptcp_userspace_pm_remove_id_zero_address (msk); +release_sock (sk); goto out; } -lock_sock (sk); -spin_lock_bh (&msk->pm.lock); match =mptcp_userspace_pm_lookup_addr_by_id (msk, id_val);if (!match) {
Signature · 1 line
2.43.0
Geliang Tang
reviewerPATCH v3 6/6 mptcp: change is_backup interfaces as get_flags
In reply to Geliang TangFrom: Geliang Tang <[email protected]>
is_backup() interface of the path managers is not very common. A more common approach is to add a get_flags() interface to obtain the flags value of a given address. Then is_backup() can be implemented through get_flags() by test whether backup flag is set in the flags value.
--- net/mptcp/pm.c | 7 +++++-- net/mptcp/pm_netlink.c | 9 +++++---- net/mptcp/pm_userspace.c | 10 +++++----- net/mptcp/protocol.h | 6 ++++-- 4 files changed, 19 insertions(+), 13 deletions(-)
net/mptcp/pm.c +5 -2
@@ -425,13 +425,16 @@ int mptcp_pm_get_local_id(struct mptcp_sock *msk, struct sock_common *skc)bool mptcp_pm_is_backup (struct mptcp_sock *msk,struct sock_common *skc) {struct mptcp_addr_info skc_local; +u8 flags;mptcp_local_address ((struct sock_common *)skc, &skc_local);if (mptcp_pm_is_userspace (msk)) -return mptcp_userspace_pm_is_backup (msk, &skc_local); + flags =mptcp_userspace_pm_get_flags (msk, &skc_local); +else + flags =mptcp_pm_nl_get_flags (msk, &skc_local); -return mptcp_pm_nl_is_backup (msk, &skc_local); +return !!(flags &MPTCP_PM_ADDR_FLAG_BACKUP ); } static int mptcp_pm_get_addr(u8 id, struct mptcp_pm_addr_entry *addr,
net/mptcp/pm_netlink.c +5 -4
@@ -1172,18 +1172,19 @@ int mptcp_pm_nl_get_local_id(struct mptcp_sock *msk, struct mptcp_addr_info *skcreturn ret; } -bool mptcp_pm_nl_is_backup (struct mptcp_sock *msk,struct mptcp_addr_info *skc) +u8 mptcp_pm_nl_get_flags (struct mptcp_sock *msk, +struct mptcp_addr_info *skc) {struct pm_nl_pernet *pernet =pm_nl_get_pernet_from_msk (msk);struct mptcp_pm_addr_entry *entry; -bool backup; +u8 flags;rcu_read_lock (); entry =__lookup_addr (pernet, skc); - backup = entry && !!(entry->flags &MPTCP_PM_ADDR_FLAG_BACKUP ); + flags = entry ? entry->flags :0 ;rcu_read_unlock (); -return backup; +return flags; }#define MPTCP_PM_CMD_GRP_OFFSET 0
net/mptcp/pm_userspace.c +5 -5
@@ -154,18 +154,18 @@ int mptcp_userspace_pm_get_local_id(struct mptcp_sock *msk,return mptcp_userspace_pm_append_new_local_addr (msk, &new_entry, true); } -bool mptcp_userspace_pm_is_backup (struct mptcp_sock *msk, -struct mptcp_addr_info *skc) +u8 mptcp_userspace_pm_get_flags (struct mptcp_sock *msk, +struct mptcp_addr_info *skc) {struct mptcp_pm_addr_entry *entry; -bool backup; +u8 flags;spin_lock_bh (&msk->pm.lock); entry =mptcp_userspace_pm_lookup_addr (msk, skc); - backup = entry && !!(entry->flags &MPTCP_PM_ADDR_FLAG_BACKUP ); + flags = entry ? entry->flags :0 ;spin_unlock_bh (&msk->pm.lock); -return backup; +return flags; }static struct mptcp_sock *mptcp_userspace_pm_get_sock (const struct genl_info *info)
net/mptcp/protocol.h +4 -2
@@ -1132,8 +1132,10 @@ int mptcp_pm_get_local_id(struct mptcp_sock *msk, struct sock_common *skc);int mptcp_pm_nl_get_local_id (struct mptcp_sock *msk,struct mptcp_addr_info *skc);int mptcp_userspace_pm_get_local_id (struct mptcp_sock *msk,struct mptcp_addr_info *skc);bool mptcp_pm_is_backup (struct mptcp_sock *msk,struct sock_common *skc); -bool mptcp_pm_nl_is_backup (struct mptcp_sock *msk,struct mptcp_addr_info *skc); -bool mptcp_userspace_pm_is_backup (struct mptcp_sock *msk,struct mptcp_addr_info *skc); +u8 mptcp_pm_nl_get_flags (struct mptcp_sock *msk, +struct mptcp_addr_info *skc); +u8 mptcp_userspace_pm_get_flags (struct mptcp_sock *msk, +struct mptcp_addr_info *skc);int mptcp_pm_nl_dump_addr (struct sk_buff *msg,struct netlink_callback *cb); int mptcp_userspace_pm_dump_addr(struct sk_buff *msg,
Signature · 1 line
2.43.0
Hi Geliang,
Thank you for your modifications, that's great!
Our CI did some validations and here is its report:
- KVM Validation: normal: Success! ✅
- KVM Validation: debug: Success! ✅
- KVM Validation: btf-normal (only bpftest_all): Success! ✅
- KVM Validation: btf-debug (only bpftest_all): Success! ✅
- Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/12786150574
Initiator: Patchew Applier
Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/1647cc52b82c
Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=925637
If there are some issues, you can reproduce them using the same environment as the one used by the CI thanks to a docker image, e.g.:
$ cd [kernel source code]
$ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \
--pull always mptcp/mptcp-upstream-virtme-docker:latest \
auto-normalFor more details:
https://github.com/multipath-tcp/mptcp-upstream-virtme-docker
Please note that despite all the efforts that have been already done to have a stable tests suite when executed on a public CI like here, it is possible some reported issues are not due to your modifications. Still, do not hesitate to help us improve that ;-)
Cheers,
MPTCP GH Action bot
Bot operated by Matthieu Baerts (NGI0 Core)