add MP_CAPABLE 'C' flag
Subsystems (4)
v7 cover add MP_CAPABLE 'C' flag
v7:
- use add_cached instead of add_list
- tag: export/20210524T060340
v6:
- rename mptcp_pm_add_entry to mptcp_pm_anno_entry
- update mptcp_pm_free_add_list
- update code in mptcp_pm_nl_add_addr_received
- tag: export/20210514T055902
v5:
- add a new patch "mptcp: add add_list in mptcp_pm_data"
- fix !CONFIG_SYSCTL case
- tag: export/20210507T174457
v4:
- rename mptcp_is_allow_join_id0 to mptcp_allow_join_id0
- rename deny_join_id0 in mptcp_pm_data to remote_deny_join_id0
- add comments for self test cases
- apply: export/20210504T064955 +
"data checksum support" +
"data checksum support cleanups"
v3:
- use 'u8 allow_join_initial_addr_port'
- drop the spinlock in patch 3
v2:
- rename join_denied to allow_join_id0 in mptcp_out_options
- rename join_denied to deny_join_id0 in mptcp_options_received
- add a new function mptcp_pm_deny_join_id0_received
- move deny_join_id0 flag from mptcp_sock to mptcp_pm_data
- check deny_join_id0 flag in mptcp_pm_create_subflow_or_signal_addr
instead of in mptcp_syn_options.
Geliang Tang (5):
mptcp: add sysctl allow_join_initial_addr_port
mptcp: add allow_join_id0 in mptcp_out_options
mptcp: add add_cached in mptcp_pm_data
mptcp: add deny_join_id0 in mptcp_options_received
selftests: mptcp: add deny_join_id0 testcases
Documentation/networking/mptcp-sysctl.rst | 13 ++++ include/net/mptcp.h | 3 +- net/mptcp/ctrl.c | 16 ++++ net/mptcp/options.c | 12 +++ net/mptcp/pm.c | 2 + net/mptcp/pm_netlink.c | 11 ++- net/mptcp/protocol.h | 12 ++- net/mptcp/subflow.c | 3 + .../testing/selftests/net/mptcp/mptcp_join.sh | 73 ++++++++++++++++++- 9 files changed, 139 insertions(+), 6 deletions(-)
Signature · 1 line
2.31.1
PATCH v7 1/5 mptcp: add sysctl allow_join_initial_addr_port
This patch added a new sysctl, named allow_join_initial_addr_port, to control whether allow peers to send join requests to the IP address and port number used by the initial subflow.
--- Documentation/networking/mptcp-sysctl.rst | 13 +++++++++++++ net/mptcp/ctrl.c | 16 ++++++++++++++++ net/mptcp/protocol.h | 1 + 3 files changed, 30 insertions(+)
Documentation/networking/mptcp-sysctl.rst +13 -0
@@ -32,3 +32,16 @@ checksum_enabled - BOOLEAN per-namespace sysctl. Default: 0 + +allow_join_initial_addr_port - BOOLEAN + Allow peers to send join requests to the IP address and port number used + by the initial subflow if the value is 1. This controls a flag that is + sent to the peer at connection time, and whether such join requests are + accepted or denied. + + Joins to addresses advertised with ADD_ADDR are not affected by this + value. + + This is a per-namespace sysctl. + + Default: 1
net/mptcp/ctrl.c +16 -0
@@ -24,6 +24,7 @@ struct mptcp_pernet {u8 mptcp_enabled;unsigned int add_addr_timeout;u8 checksum_enabled; +u8 allow_join_initial_addr_port; };static struct mptcp_pernet *mptcp_get_pernet (struct net *net)
@@ -46,11 +47,17 @@ int mptcp_is_checksum_enabled(struct net *net)return mptcp_get_pernet (net)->checksum_enabled; } +int mptcp_allow_join_id0 (struct net *net) +{ +return mptcp_get_pernet (net)->allow_join_initial_addr_port; +} +static void mptcp_pernet_set_defaults (struct mptcp_pernet *pernet) { pernet->mptcp_enabled =1 ; pernet->add_addr_timeout =TCP_RTO_MAX ; pernet->checksum_enabled =0 ; + pernet->allow_join_initial_addr_port =1 ; }#ifdef CONFIG_SYSCTL
@@ -80,6 +87,14 @@ static struct ctl_table mptcp_sysctl_table[] = { .extra1 = SYSCTL_ZERO, .extra2 = SYSCTL_ONE }, + { + .procname = "allow_join_initial_addr_port", + .maxlen = sizeof(u8), + .mode = 0644, + .proc_handler = proc_dou8vec_minmax, + .extra1 = SYSCTL_ZERO, + .extra2 = SYSCTL_ONE + }, {} };
@@ -98,6 +113,7 @@ static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) table[0 ].data = &pernet->mptcp_enabled; table[1 ].data = &pernet->add_addr_timeout; table[2 ].data = &pernet->checksum_enabled; + table[3 ].data = &pernet->allow_join_initial_addr_port; hdr =register_net_sysctl (net,MPTCP_SYSCTL_PATH , table);if (!hdr)
net/mptcp/protocol.h +1 -0
@@ -543,6 +543,7 @@ static inline void mptcp_subflow_delegated_done(struct mptcp_subflow_context *suint mptcp_is_enabled (struct net *net);unsigned int mptcp_get_add_addr_timeout (struct net *net);int mptcp_is_checksum_enabled (struct net *net); +int mptcp_allow_join_id0 (struct net *net);void mptcp_subflow_fully_established (struct mptcp_subflow_context *subflow,struct mptcp_options_received *mp_opt);bool mptcp_subflow_data_available (struct sock *sk);
Signature · 1 line
2.31.1
PATCH v7 2/5 mptcp: add allow_join_id0 in mptcp_out_options
This patch defined a new flag MPTCP_CAP_DENY_JOIN_ID0 for the third bit, labeled "C" of the MP_CAPABLE option.
Add a new flag allow_join_id0 in struct mptcp_out_options. If this flag is set, send out the MP_CAPABLE option with the flag MPTCP_CAP_DENY_JOIN_ID0.
--- include/net/mptcp.h | 3 ++- net/mptcp/options.c | 6 ++++++ net/mptcp/protocol.h | 6 ++++-- net/mptcp/subflow.c | 1 + 4 files changed, 13 insertions(+), 3 deletions(-)
include/net/mptcp.h +2 -1
@@ -67,7 +67,8 @@ struct mptcp_out_options {u8 backup; u8 reset_reason:4, reset_transient:1, - csum_reqd:1; + csum_reqd:1, + allow_join_id0:1;u32 nonce;u64 thmac;u32 token;
net/mptcp/options.c +6 -0
@@ -400,6 +400,7 @@ bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,if (subflow->request_mptcp) { opts->suboptions =OPTION_MPTCP_MPC_SYN ; opts->csum_reqd =mptcp_is_checksum_enabled (sock_net (sk)); + opts->allow_join_id0 =mptcp_allow_join_id0 (sock_net (sk)); *size =TCPOLEN_MPTCP_MPC_SYN ;return true; }else if (subflow->request_join) {
@@ -488,6 +489,7 @@ static bool mptcp_established_options_mp(struct sock *sk, struct sk_buff *skb, opts->sndr_key = subflow->local_key; opts->rcvr_key = subflow->remote_key; opts->csum_reqd =READ_ONCE (msk->csum_enabled); + opts->allow_join_id0 =mptcp_allow_join_id0 (sock_net (sk));/* Section 3.1. * The MP_CAPABLE option is carried on the SYN, SYN/ACK, and ACK
@@ -825,6 +827,7 @@ bool mptcp_synack_options(const struct request_sock *req, unsigned int *size, opts->suboptions =OPTION_MPTCP_MPC_SYNACK ; opts->sndr_key = subflow_req->local_key; opts->csum_reqd = subflow_req->csum_reqd; + opts->allow_join_id0 = subflow_req->allow_join_id0; *size =TCPOLEN_MPTCP_MPC_SYNACK ;pr_debug ("subflow_req=%p, local_key=%llu" , subflow_req, subflow_req->local_key);
@@ -1199,6 +1202,9 @@ void mptcp_write_options(__be32 *ptr, const struct tcp_sock *tp,if (opts->csum_reqd) flag |=MPTCP_CAP_CHECKSUM_REQD ; +if (!opts->allow_join_id0) + flag |=MPTCP_CAP_DENY_JOIN_ID0 ; + *ptr++ =mptcp_option (MPTCPOPT_MP_CAPABLE , len,MPTCP_SUPPORTED_VERSION , flag);
net/mptcp/protocol.h +4 -2
@@ -79,8 +79,9 @@#define MPTCP_VERSION_MASK (0x0F)#define MPTCP_CAP_CHECKSUM_REQD BIT(7)#define MPTCP_CAP_EXTENSIBILITY BIT(6) +#define MPTCP_CAP_DENY_JOIN_ID0 BIT(5)#define MPTCP_CAP_HMAC_SHA256 BIT(0) -#define MPTCP_CAP_FLAG_MASK (0x3F) +#define MPTCP_CAP_FLAG_MASK (0x1F)/* MPTCP DSS flags */ #define MPTCP_DSS_DATA_FIN BIT(4)
@@ -352,7 +353,8 @@ struct mptcp_subflow_request_sock { u16 mp_capable : 1, mp_join : 1, backup : 1, - csum_reqd : 1; + csum_reqd : 1, + allow_join_id0 : 1;u8 local_id;u8 remote_id;u64 local_key;
net/mptcp/subflow.c +1 -0
@@ -109,6 +109,7 @@ static void subflow_init_req(struct request_sock *req, const struct sock *sk_lis subflow_req->mp_capable =0 ; subflow_req->mp_join =0 ; subflow_req->csum_reqd =mptcp_is_checksum_enabled (sock_net (sk_listener)); + subflow_req->allow_join_id0 =mptcp_allow_join_id0 (sock_net (sk_listener)); subflow_req->msk =NULL ;mptcp_token_init_request (req); }
Signature · 1 line
2.31.1
PATCH v7 3/5 mptcp: add add_cached in mptcp_pm_data
This patch added a new member add_cached in struct mptcp_pm_data, to track the most recent received ADD_ADDR information. Also invalidate it if a matching REMOVE_ADDR is received.
--- net/mptcp/pm.c | 1 + net/mptcp/pm_netlink.c | 3 +++ net/mptcp/protocol.h | 1 + 3 files changed, 5 insertions(+)
net/mptcp/pm.c +1 -0
@@ -316,6 +316,7 @@ void mptcp_pm_data_init(struct mptcp_sock *msk) msk->pm.subflows =0 ; msk->pm.rm_list_tx.nr =0 ; msk->pm.rm_list_rx.nr =0 ; + msk->pm.add_cached.id =0 ;WRITE_ONCE (msk->pm.work_pending, false);WRITE_ONCE (msk->pm.addr_signal,0 );WRITE_ONCE (msk->pm.accept_addr, false);
net/mptcp/pm_netlink.c +3 -0
@@ -515,6 +515,7 @@ static void mptcp_pm_nl_add_addr_received(struct mptcp_sock *msk) remote.port = sk->sk_dport;memset (&local,0 ,sizeof (local)); local.family = remote.family; + msk->pm.add_cached = remote;spin_unlock_bh (&msk->pm.lock);__mptcp_subflow_connect (sk, &local, &remote,0 ,0 );
@@ -631,6 +632,8 @@ static void mptcp_pm_nl_rm_addr_or_subflow(struct mptcp_sock *msk,if (rm_type ==MPTCP_MIB_RMADDR ) { msk->pm.add_addr_accepted--;WRITE_ONCE (msk->pm.accept_addr, true); +if (msk->pm.add_cached.id == id) + msk->pm.add_cached.id =0 ; }else if (rm_type ==MPTCP_MIB_RMSUBFLOW ) { msk->pm.local_addr_used--; }
net/mptcp/protocol.h +1 -0
@@ -185,6 +185,7 @@ struct mptcp_pm_data {struct mptcp_addr_info local;struct mptcp_addr_info remote;struct list_head anno_list; +struct mptcp_addr_info add_cached;spinlock_t lock;/*protects the whole PM data */
Signature · 1 line
2.31.1
PATCH v7 4/5 mptcp: add deny_join_id0 in mptcp_options_received
This patch added a new flag named deny_join_id0 in struct mptcp_options_received. Set it when MP_CAPABLE with the flag MPTCP_CAP_DENYJOIN_ID0 is received.
Also add a new flag remote_deny_join_id0 in struct mptcp_pm_data. When the flag deny_join_id0 is set, set this remote_deny_join_id0 flag.
In mptcp_pm_create_subflow_or_signal_addr, if the remote_deny_join_id0 flag is set, and the remote address id is zero, stop this connection.
--- net/mptcp/options.c | 6 ++++++ net/mptcp/pm.c | 1 + net/mptcp/pm_netlink.c | 8 +++++++- net/mptcp/protocol.h | 4 +++- net/mptcp/subflow.c | 2 ++ 5 files changed, 19 insertions(+), 2 deletions(-)
net/mptcp/options.c +6 -0
@@ -83,6 +83,9 @@ static void mptcp_parse_option(const struct sk_buff *skb,if (flags &MPTCP_CAP_CHECKSUM_REQD ) mp_opt->csum_reqd =1 ; +if (flags &MPTCP_CAP_DENY_JOIN_ID0 ) + mp_opt->deny_join_id0 =1 ; + mp_opt->mp_capable =1 ;if (opsize >=TCPOLEN_MPTCP_MPC_SYNACK ) { mp_opt->sndr_key =get_unaligned_be64 (ptr);
@@ -360,6 +363,7 @@ void mptcp_get_options(const struct sock *sk, mp_opt->mp_prio =0 ; mp_opt->reset =0 ; mp_opt->csum_reqd =READ_ONCE (msk->csum_enabled); + mp_opt->deny_join_id0 =0 ; length = (th->doff *4 ) -sizeof (struct tcphdr ); ptr = (const unsigned char *)(th +1 );
@@ -1047,6 +1051,8 @@ void mptcp_incoming_options(struct sock *sk, struct sk_buff *skb) }mptcp_get_options (sk, skb, &mp_opt); +if (mp_opt.deny_join_id0) +WRITE_ONCE (msk->pm.remote_deny_join_id0, true);if (!check_fully_established (msk, sk, subflow, skb, &mp_opt))return ;
net/mptcp/pm.c +1 -0
@@ -321,6 +321,7 @@ void mptcp_pm_data_init(struct mptcp_sock *msk)WRITE_ONCE (msk->pm.addr_signal,0 );WRITE_ONCE (msk->pm.accept_addr, false);WRITE_ONCE (msk->pm.accept_subflow, false); +WRITE_ONCE (msk->pm.remote_deny_join_id0, false); msk->pm.status =0 ;spin_lock_init (&msk->pm.lock);
net/mptcp/pm_netlink.c +7 -1
@@ -456,10 +456,16 @@ static void mptcp_pm_create_subflow_or_signal_addr(struct mptcp_sock *msk)if (local) {struct mptcp_addr_info remote = {0 }; +remote_address ((struct sock_common *)sk, &remote); +if (READ_ONCE (msk->pm.remote_deny_join_id0)) { +if (!msk->pm.add_cached.id) +return ; + + remote = msk->pm.add_cached; + } msk->pm.local_addr_used++; msk->pm.subflows++;check_work_pending (msk); -remote_address ((struct sock_common *)sk, &remote);spin_unlock_bh (&msk->pm.lock);__mptcp_subflow_connect (sk, &local->addr, &remote, local->flags, local->ifindex);
net/mptcp/protocol.h +3 -1
@@ -138,7 +138,8 @@ struct mptcp_options_received { mp_prio : 1, echo : 1, csum_reqd : 1, - backup : 1; + backup : 1, + deny_join_id0 : 1;u32 token;u32 nonce;u64 thmac;
@@ -194,6 +195,7 @@ struct mptcp_pm_data {bool work_pending;bool accept_addr;bool accept_subflow; +bool remote_deny_join_id0;u8 add_addr_signaled;u8 add_addr_accepted;u8 local_addr_used;
net/mptcp/subflow.c +2 -0
@@ -408,6 +408,8 @@ static void subflow_finish_connect(struct sock *sk, const struct sk_buff *skb)if (mp_opt.csum_reqd)WRITE_ONCE (mptcp_sk (parent)->csum_enabled, true); +if (mp_opt.deny_join_id0) +WRITE_ONCE (mptcp_sk (parent)->pm.remote_deny_join_id0, true); subflow->mp_capable =1 ; subflow->can_ack =1 ; subflow->remote_key = mp_opt.sndr_key;
Signature · 1 line
2.31.1
PATCH v7 5/5 selftests: mptcp: add deny_join_id0 testcases
This patch added a new argument '-d' for mptcp_join.sh script, to invoke the testcases for the MP_CAPABLE 'C' flag.
--- .../testing/selftests/net/mptcp/mptcp_join.sh | 73 ++++++++++++++++++- 1 file changed, 72 insertions(+), 1 deletion(-)
tools/testing/selftests/net/mptcp/mptcp_join.sh +72 -1
@@ -139,6 +139,17 @@ reset_with_checksum() ip netns exec $ns2 sysctl -q net.mptcp.checksum_enabled=$ns2_enable } +reset_with_allow_join_id0() +{ + local ns1_enable=$1 + local ns2_enable=$2 + + reset + + ip netns exec $ns1 sysctl -q net.mptcp.allow_join_initial_addr_port=$ns1_enable + ip netns exec $ns2 sysctl -q net.mptcp.allow_join_initial_addr_port=$ns2_enable +} + ip -Version > /dev/null 2>&1 if [ $? -ne 0 ];then echo "SKIP: Could not run test without ip tool"
@@ -1462,6 +1473,61 @@ checksum_tests() chk_csum_nr "checksum test 1 0" } +deny_join_id0_tests() +{ + # subflow allow join id0 ns1 + reset_with_allow_join_id0 1 0 + ip netns exec $ns1 ./pm_nl_ctl limits 1 1 + ip netns exec $ns2 ./pm_nl_ctl limits 1 1 + ip netns exec $ns2 ./pm_nl_ctl add 10.0.3.2 flags subflow + run_tests $ns1 $ns2 10.0.1.1 + chk_join_nr "single subflow allow join id0 ns1" 1 1 1 + + # subflow allow join id0 ns2 + reset_with_allow_join_id0 0 1 + ip netns exec $ns1 ./pm_nl_ctl limits 1 1 + ip netns exec $ns2 ./pm_nl_ctl limits 1 1 + ip netns exec $ns2 ./pm_nl_ctl add 10.0.3.2 flags subflow + run_tests $ns1 $ns2 10.0.1.1 + chk_join_nr "single subflow allow join id0 ns2" 0 0 0 + + # signal address allow join id0 ns1 + reset_with_allow_join_id0 1 0 + ip netns exec $ns1 ./pm_nl_ctl limits 1 1 + ip netns exec $ns2 ./pm_nl_ctl limits 1 1 + ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal + run_tests $ns1 $ns2 10.0.1.1 + chk_join_nr "signal address allow join id0 ns1" 1 1 1 + chk_add_nr 1 1 + + # signal address allow join id0 ns2 + reset_with_allow_join_id0 0 1 + ip netns exec $ns1 ./pm_nl_ctl limits 1 1 + ip netns exec $ns2 ./pm_nl_ctl limits 1 1 + ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal + run_tests $ns1 $ns2 10.0.1.1 + chk_join_nr "signal address allow join id0 ns2" 1 1 1 + chk_add_nr 1 1 + + # subflow and address allow join id0 ns1 + reset_with_allow_join_id0 1 0 + ip netns exec $ns1 ./pm_nl_ctl limits 2 2 + ip netns exec $ns2 ./pm_nl_ctl limits 2 2 + ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal + ip netns exec $ns2 ./pm_nl_ctl add 10.0.3.2 flags subflow + run_tests $ns1 $ns2 10.0.1.1 + chk_join_nr "subflow and address allow join id0 1" 2 2 2 + + # subflow and address allow join id0 ns2 + reset_with_allow_join_id0 0 1 + ip netns exec $ns1 ./pm_nl_ctl limits 2 2 + ip netns exec $ns2 ./pm_nl_ctl limits 2 2 + ip netns exec $ns1 ./pm_nl_ctl add 10.0.2.1 flags signal + ip netns exec $ns2 ./pm_nl_ctl add 10.0.3.2 flags subflow + run_tests $ns1 $ns2 10.0.1.1 + chk_join_nr "subflow and address allow join id0 2" 2 2 2 +} + all_tests() { subflows_tests
@@ -1476,6 +1542,7 @@ all_tests() add_addr_ports_tests syncookies_tests checksum_tests + deny_join_id0_tests } usage()
@@ -1493,6 +1560,7 @@ usage() echo " -p add_addr_ports_tests" echo " -k syncookies_tests" echo " -S checksum_tests" + echo " -d deny_join_id0_tests" echo " -c capture pcap files" echo " -C enable data checksum" echo " -h help"
@@ -1528,7 +1596,7 @@ if [ $do_all_tests -eq 1 ]; then exit $ret fi -while getopts 'fsltra64bpkchCS' opt; do +while getopts 'fsltra64bpkdchCS' opt; do case $opt in f) subflows_tests
@@ -1566,6 +1634,9 @@ while getopts 'fsltra64bpkchCS' opt; do S) checksum_tests ;; + d) + deny_join_id0_tests + ;; c) ;; C)
Signature · 1 line
2.31.1
Re: [MPTCP][PATCH v7 mptcp-next 3/5] mptcp: add add_cached in mptcp_pm_data
In reply to Geliang TangQuoted 28 lines · Geliang Tang
This patch added a new member
add_cachedin structmptcp_pm_data, to track the most recent receivedADD_ADDRinformation. Also invalidate it if a matchingREMOVE_ADDRis received.Signed-off-by Geliang Tang <[email protected]>---
net/mptcp/pm.c | 1 + net/mptcp/pm_netlink.c | 3 +++ net/mptcp/protocol.h | 1 + 3 files changed, 5 insertions(+)net/mptcp/pm.c +1
-0@@ -316,6 +316,7 @@ void mptcp_pm_data_init(struct mptcp_sock *msk) msk->pm.subflows =0 ; msk->pm.rm_list_tx.nr =0 ; msk->pm.rm_list_rx.nr =0 ; + msk->pm.add_cached.id =0 ;WRITE_ONCE (msk->pm.work_pending, false);WRITE_ONCE (msk->pm.addr_signal,0 );WRITE_ONCE (msk->pm.accept_addr, false);net/mptcp/pm_netlink.c +0
-0
net/mptcp/pm_netlink.c static void mptcp_pm_nl_add_addr_received(struct mptcp_sock *msk) · line 521
Quoted 7 lines
net/mptcp/pm_netlink.c +1
-0@@ -515,6 +515,7 @@ static void mptcp_pm_nl_add_addr_received(struct mptcp_sock *msk) remote.port = sk->sk_dport;memset (&local,0 ,sizeof (local)); local.family = remote.family; + msk->pm.add_cached = remote;spin_unlock_bh (&msk->pm.lock);__mptcp_subflow_connect (sk, &local, &remote,0 ,0 );
I think the above few lines of code show the point Paolo was making in the meeting last week (and I didn't get the full implications of it at the time). If this is the point where the extra remote address is received and cached, then there's already a __mptcp_subflow_connect() here to connect to the peer - and the connection code in mptcp_pm_create_subflow_or_signal_addr() becomes redundant.
There's a corner case where the pernet limits change after an ADD_ADDR is received, but the above caching doesn't work for that because there's an optimization in mptcp_pm_add_addr_received() to echo the ADD_ADDR without scheduling the worker. So mptcp_pm_nl_add_addr_received() doesn't get called when pm->accept_addr is false, and the address information is lost. This could be handled by removing the optimization and modifying the worker, but that doesn't seem worthwhile.
So, after going on a detour after v4 of this patch set, I see the appeal of the simpler logic Paolo suggested in https://lore.kernel.org/mptcp/[email protected]/
Paolo, Geliang, what do you think about using that approach and removing the caching? (I'm guessing your first thought is "finally!"...)
-Mat
Quoted 26 lines
net/mptcp/pm_netlink.c +2
-0@@ -631,6 +632,8 @@ static void mptcp_pm_nl_rm_addr_or_subflow(struct mptcp_sock *msk,if (rm_type ==MPTCP_MIB_RMADDR ) { msk->pm.add_addr_accepted--;WRITE_ONCE (msk->pm.accept_addr, true); +if (msk->pm.add_cached.id == id) + msk->pm.add_cached.id =0 ; }else if (rm_type ==MPTCP_MIB_RMSUBFLOW ) { msk->pm.local_addr_used--; }net/mptcp/protocol.h +1
-0@@ -185,6 +185,7 @@ struct mptcp_pm_data {struct mptcp_addr_info local;struct mptcp_addr_info remote;struct list_head anno_list; +struct mptcp_addr_info add_cached;spinlock_t lock;/*protects the whole PM data */ Signature · 1 line
2.31.1
--
Mat Martineau
Intel