mptcp: mix fixes
Subsystems (3)
Paolo Abeni
cover mptcp: mix fixes
This includes new versions of 2 already posted patches (1/5 && 2/5) a rewrite of an already posted RFC patch (3/5) and a new fix.
Patch 1 should address issues/126
Patch 2 should address issues/130 && 125
Patch 3 is mostly a clean-up, possibly could land to net-next Patch 4 should fix issue 146
Finally patch 5 allow mptcp_connect to dump more info when errors happen
Paolo Abeni (5):
mptcp: fix spurious retransmissions
mptcp: init mptcp request socket earlier
mptcp: better msk receive window updates
mptcp: add a missing retransmission timer scheduling
selftests: mptcp: dump more info on errors
net/mptcp/options.c | 10 ++--- net/mptcp/protocol.c | 44 +++++++++++-------- net/mptcp/protocol.h | 14 ++---- net/mptcp/subflow.c | 40 +++++++---------- .../selftests/net/mptcp/mptcp_connect.sh | 11 +++-- 5 files changed, 58 insertions(+), 61 deletions(-)
Signature · 1 line
2.26.2
Paolo Abeni
PATCH 1/5 mptcp: fix spurious retransmissions
Syzkaller was able to trigger again the following splat:
WARNING: CPU: 1 PID: 12512 at net/mptcp/protocol.c:761 mptcp_reset_timer+0x12a/0x160 net/mptcp/protocol.c:761 Modules linked in: CPU: 1 PID: 12512 Comm: kworker/1:6 Not tainted 5.10.0-rc6 #52 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014 Workqueue: events mptcp_worker RIP: 0010:mptcp_reset_timer+0x12a/0x160 net/mptcp/protocol.c:761 Code: e8 4b 0c ad ff e8 56 21 88 fe 48 b8 00 00 00 00 00 fc ff df 48 c7 04 03 00 00 00 00 48 83 c4 40 5b 5d 41 5c c3 e8 36 21 88 fe <0f> 0b 41 bc c8 00 00 00 eb 98 e8 e7 b1 af fe e9 30 ff ff ff 48 c7 RSP: 0018:ffffc900018c7c68 EFLAGS: 00010293 RAX: ffff888108cb1c80 RBX: 1ffff92000318f8d RCX: ffffffff82ad0307 RDX: 0000000000000000 RSI: ffffffff82ad036a RDI: 0000000000000007 RBP: ffff888113e2d000 R08: ffff888108cb1c80 R09: ffffed10227c5ab7 R10: ffff888113e2d5b7 R11: ffffed10227c5ab6 R12: 0000000000000000 R13: ffff88801f100000 R14: ffff888113e2d5b0 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88811b500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd76a874ef8 CR3: 000000001689c005 CR4: 0000000000170ee0 Call Trace: mptcp_worker+0xaa4/0x1560 net/mptcp/protocol.c:2334 process_one_work+0x8d3/0x1200 kernel/workqueue.c:2272 worker_thread+0x9c/0x1090 kernel/workqueue.c:2418 kthread+0x303/0x410 kernel/kthread.c:292 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:296
The mptcp_worker tries to update the MPTCP retransmission timer even if such timer is not currently scheduled.
The mptcp_rtx_head() return value is bogus: we can have enqueued data not yet transmitted. The above may additionally cause spurious, unneeded MPTCP-level retransmissions.
Fix the issue adding an explicit clearing the rtx queue before trying to retransmit and checking for unacked data Additionally drop an unneeded timer stop call and the unused mptcp_rtx_tail() helper.
---
v2 -> v3:
- whoops, fixed sanity check condition in mptcp_rtx_head()
v1 -> v2:
- add sanity check in mptcp_rtx_head()
--- net/mptcp/protocol.c | 3 +-- net/mptcp/protocol.h | 11 ++--------- 2 files changed, 3 insertions(+), 11 deletions(-)
net/mptcp/protocol.c +1 -2
@@ -363,8 +363,6 @@ static void mptcp_check_data_fin_ack(struct sock *sk)/* Look for an acknowledged DATA_FIN */ if (mptcp_pending_data_fin_ack (sk)) { -mptcp_stop_timer (sk); -WRITE_ONCE (msk->snd_data_fin_enable,0 );switch (sk->sk_state) {
@@ -2271,6 +2269,7 @@ static void mptcp_worker(struct work_struct *work)if (!test_and_clear_bit (MPTCP_WORK_RTX , &msk->flags)) goto unlock; +__mptcp_clean_una (sk); dfrag =mptcp_rtx_head (sk);if (!dfrag) goto unlock;
net/mptcp/protocol.h +2 -9
@@ -335,20 +335,13 @@ static inline struct mptcp_data_frag *mptcp_pending_tail(const struct sock *sk) return list_last_entry(&msk->rtx_queue, struct mptcp_data_frag, list); } -static inline struct mptcp_data_frag *mptcp_rtx_tail (const struct sock *sk) +static inline struct mptcp_data_frag *mptcp_rtx_head (const struct sock *sk) {struct mptcp_sock *msk =mptcp_sk (sk); -if (!before64 (msk->snd_nxt,READ_ONCE (msk->snd_una))) +if (msk->snd_una ==READ_ONCE (msk->snd_nxt))return NULL ; - return list_last_entry(&msk->rtx_queue, struct mptcp_data_frag, list); -} - -static inline struct mptcp_data_frag *mptcp_rtx_head (const struct sock *sk) -{ -struct mptcp_sock *msk =mptcp_sk (sk); - return list_first_entry_or_null(&msk->rtx_queue, struct mptcp_data_frag, list); }
Signature · 1 line
2.26.2
Paolo Abeni
PATCH 2/5 mptcp: init mptcp request socket earlier
In reply to Paolo AbeniThe mptcp subflow route_req() callback performs the subflow req initialization after the route_req() check. If the latter fails, mptcp-specific bits of the current request sockets are left uninitialized.
The above causes bad things at req socket disposal time, when the mptcp resources are cleared.
This change addresses the issue by splitting subflow_init_req() into the actual initialization and the mptcp-specific checks. The initialization is moved before any possibly failing check.
---
v1 -> v2:
- fixed compile warn, dropping unused variable, no need to additional
tests,
--- net/mptcp/subflow.c | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-)
net/mptcp/subflow.c +16 -24
@@ -100,7 +100,7 @@ static struct mptcp_sock *subflow_token_join_request(struct request_sock *req)return msk; } -static int __subflow_init_req (struct request_sock *req,const struct sock *sk_listener) +static void subflow_init_req (struct request_sock *req,const struct sock *sk_listener) {struct mptcp_subflow_request_sock *subflow_req =mptcp_subflow_rsk (req);
@@ -108,16 +108,6 @@ static int __subflow_init_req(struct request_sock *req, const struct sock *sk_li subflow_req->mp_join =0 ; subflow_req->msk =NULL ;mptcp_token_init_request (req); - -#ifdef CONFIG_TCP_MD5SIG -/* no MPTCP if MD5SIG is enabled on this socket or we may run out of -* TCP option space. -*/ -if (rcu_access_pointer (tcp_sk (sk_listener)->md5sig_info)) -return -EINVAL ; -#endif - -return 0 ; }static bool subflow_use_different_sport (struct mptcp_sock *msk,const struct sock *sk)
@@ -130,20 +120,23 @@ static bool subflow_use_different_sport(struct mptcp_sock *msk, const struct soc* Returns an error code if a JOIN has failed and a TCP reset * should be sent. */ -static int subflow_init_req (struct request_sock *req, -const struct sock *sk_listener, -struct sk_buff *skb) +static int subflow_check_req (struct request_sock *req, +const struct sock *sk_listener, +struct sk_buff *skb) {struct mptcp_subflow_context *listener =mptcp_subflow_ctx (sk_listener);struct mptcp_subflow_request_sock *subflow_req =mptcp_subflow_rsk (req);struct mptcp_options_received mp_opt; -int ret;pr_debug ("subflow_req=%p, listener=%p" , subflow_req, listener); - ret =__subflow_init_req (req, sk_listener); -if (ret) -return 0 ; +#ifdef CONFIG_TCP_MD5SIG +/* no MPTCP if MD5SIG is enabled on this socket or we may run out of +* TCP option space. +*/ +if (rcu_access_pointer (tcp_sk (sk_listener)->md5sig_info)) +return -EINVAL ; +#endif mptcp_get_options (skb, &mp_opt);
@@ -236,10 +229,7 @@ int mptcp_subflow_init_cookie_req(struct request_sock *req,struct mptcp_options_received mp_opt;int err; - err =__subflow_init_req (req, sk_listener); -if (err) -return err; - +subflow_init_req (req, sk_listener);mptcp_get_options (skb, &mp_opt);if (mp_opt.mp_capable && mp_opt.mp_join)
@@ -279,12 +269,13 @@ static struct dst_entry *subflow_v4_route_req(const struct sock *sk,int err;tcp_rsk (req)->is_mptcp =1 ; +subflow_init_req (req, sk); dst = tcp_request_sock_ipv4_ops.route_req (sk, skb, fl, req);if (!dst)return NULL ; - err =subflow_init_req (req, sk, skb); + err =subflow_check_req (req, sk, skb);if (err ==0 )return dst;
@@ -304,12 +295,13 @@ static struct dst_entry *subflow_v6_route_req(const struct sock *sk,int err;tcp_rsk (req)->is_mptcp =1 ; +subflow_init_req (req, sk); dst = tcp_request_sock_ipv6_ops.route_req (sk, skb, fl, req);if (!dst)return NULL ; - err =subflow_init_req (req, sk, skb); + err =subflow_check_req (req, sk, skb);if (err ==0 )return dst;
Signature · 1 line
2.26.2
Paolo Abeni
PATCH 3/5 mptcp: better msk receive window updates
In reply to Paolo AbeniMove mptcp_cleanup_rbuf() related checks inside the mentioned helper and extend them to mirror more closely TCP ones.
Additionally drop the 'rmem_pending' hack, since commit 879526030c8b ("mptcp: protect the rx path with the msk socket spinlock") we can use instead 'rmem_released'.
--- net/mptcp/options.c | 7 ++++--- net/mptcp/protocol.c | 38 ++++++++++++++++++++++---------------- net/mptcp/protocol.h | 3 +-- 3 files changed, 27 insertions(+), 21 deletions(-)
net/mptcp/options.c +4 -3
@@ -508,8 +508,8 @@ static bool mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb, {struct mptcp_subflow_context *subflow =mptcp_subflow_ctx (sk);struct mptcp_sock *msk =mptcp_sk (subflow->conn); +u64 snd_data_fin_enable, ack_seq;unsigned int dss_size =0 ; -u64 snd_data_fin_enable;struct mptcp_ext *mpext;unsigned int ack_size;bool ret = false;
@@ -541,13 +541,14 @@ static bool mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb,return ret; } + ack_seq =READ_ONCE (msk->ack_seq);if (READ_ONCE (msk->use_64bit_ack)) { ack_size =TCPOLEN_MPTCP_DSS_ACK64 ; - opts->ext_copy.data_ack =READ_ONCE (msk->ack_seq); + opts->ext_copy.data_ack = ack_seq; opts->ext_copy.ack64 =1 ; }else { ack_size =TCPOLEN_MPTCP_DSS_ACK32 ; - opts->ext_copy.data_ack32 = (uint32_t )READ_ONCE (msk->ack_seq); + opts->ext_copy.data_ack32 = (uint32_t )ack_seq; opts->ext_copy.ack64 =0 ; } opts->ext_copy.use_ack =1 ;
net/mptcp/protocol.c +22 -16
@@ -456,7 +456,18 @@ static bool mptcp_subflow_cleanup_rbuf(struct sock *ssk)static void mptcp_cleanup_rbuf (struct mptcp_sock *msk) {struct sock *ack_hint =READ_ONCE (msk->ack_hint); +int old_space =READ_ONCE (msk->old_wspace);struct mptcp_subflow_context *subflow; +struct sock *sk = (struct sock *)msk; +bool cleanup; + +/* this is a simple superset of what tcp_cleanup_rbuf() implements +* so that we don't have to acquire the ssk socket lock most of the time +* to do actually nothing +*/ + cleanup =__mptcp_space (sk) - old_space >=max (0 , old_space); +if (!cleanup) +return ;/* if the hinted ssk is still active, try to use it */ if (likely (ack_hint)) {
@@ -1866,7 +1877,7 @@ static void __mptcp_splice_receive_queue(struct sock *sk)skb_queue_splice_tail_init (&sk->sk_receive_queue, &msk->receive_queue); } -static bool __mptcp_move_skbs (struct mptcp_sock *msk,unsigned int rcv) +static bool __mptcp_move_skbs (struct mptcp_sock *msk) {struct sock *sk = (struct sock *)msk;unsigned int moved =0 ;
@@ -1886,13 +1897,10 @@ static bool __mptcp_move_skbs(struct mptcp_sock *msk, unsigned int rcv) slowpath =lock_sock_fast (ssk);mptcp_data_lock (sk); +__mptcp_update_rmem (sk); done =__mptcp_move_skbs_from_subflow (msk, ssk, &moved);mptcp_data_unlock (sk); -if (moved && rcv) { -WRITE_ONCE (msk->rmem_pending,min (rcv, moved)); -tcp_cleanup_rbuf (ssk,1 ); -WRITE_ONCE (msk->rmem_pending,0 ); - } +tcp_cleanup_rbuf (ssk, moved);unlock_sock_fast (ssk, slowpath); }while (!done);
@@ -1905,6 +1913,7 @@ static bool __mptcp_move_skbs(struct mptcp_sock *msk, unsigned int rcv) ret |=__mptcp_ofo_queue (msk);__mptcp_splice_receive_queue (sk);mptcp_data_unlock (sk); +mptcp_cleanup_rbuf (msk); }if (ret)mptcp_check_data_fin ((struct sock *)msk);
@@ -1934,7 +1943,7 @@ static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, target =sock_rcvlowat (sk, flags &MSG_WAITALL , len);while (copied < len) { -int bytes_read, old_space; +int bytes_read; bytes_read =__mptcp_recvmsg_mskq (msk, msg, len - copied);if (unlikely (bytes_read <0 )) {
@@ -1945,14 +1954,11 @@ static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, copied += bytes_read; -if (skb_queue_empty (&msk->receive_queue) && -__mptcp_move_skbs (msk, len - copied)) -continue ; -/* be sure to advertise window change */ - old_space =READ_ONCE (msk->old_wspace); -if ((tcp_space (sk) - old_space) >= old_space) -mptcp_cleanup_rbuf (msk); +mptcp_cleanup_rbuf (msk); + +if (skb_queue_empty (&msk->receive_queue) &&__mptcp_move_skbs (msk)) +continue ;/* only the master socket status is relevant here. The exit * conditions mirror closely tcp_recvmsg()
@@ -1980,7 +1986,7 @@ static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,/* race breaker: the shutdown could be after the * previous receive queue check */ -if (__mptcp_move_skbs (msk, len - copied)) +if (__mptcp_move_skbs (msk))continue ;break ; }
@@ -2013,7 +2019,7 @@ static int mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len,/* .. race-breaker: ssk might have gotten new data * after last __mptcp_move_skbs() returned false. */ -if (unlikely (__mptcp_move_skbs (msk,0 ))) +if (unlikely (__mptcp_move_skbs (msk)))set_bit (MPTCP_DATA_READY , &msk->flags); }else if (unlikely (!test_bit (MPTCP_DATA_READY , &msk->flags))) {/* data to read but mptcp_wait_data() cleared DATA_READY */
net/mptcp/protocol.h +1 -2
@@ -238,7 +238,6 @@ struct mptcp_sock {u64 wnd_end;unsigned long timer_ival;u32 token; -int rmem_pending;int rmem_released;unsigned long flags;bool can_ack;
@@ -302,7 +301,7 @@ static inline struct mptcp_sock *mptcp_sk(const struct sock *sk)static inline int __mptcp_space (const struct sock *sk) { -return tcp_space (sk) +READ_ONCE (mptcp_sk (sk)->rmem_pending); +return tcp_space (sk) +READ_ONCE (mptcp_sk (sk)->rmem_released); }static inline struct mptcp_data_frag *mptcp_send_head (const struct sock *sk)
Signature · 1 line
2.26.2
Paolo Abeni
PATCH 4/5 mptcp: add a missing retransmission timer scheduling
In reply to Paolo AbeniCurrently we do not schedule the MPTCP retransmission timer after pushing the data when such action happens in the subflow context.
This may cause hang-up on active-backup scenarios, or even when only single subflow msks are involved, if we lost some peer's ack.
--- net/mptcp/options.c | 3 +-- net/mptcp/protocol.c | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-)
net/mptcp/options.c +1 -2
@@ -919,8 +919,7 @@ static void ack_update_msk(struct mptcp_sock *msk, msk->wnd_end = new_wnd_end;/* this assumes mptcp_incoming_options() is invoked after tcp_ack() */ -if (after64 (msk->wnd_end,READ_ONCE (msk->snd_nxt)) && -sk_stream_memory_free (ssk)) +if (after64 (msk->wnd_end,READ_ONCE (msk->snd_nxt)))__mptcp_check_push (sk, ssk);if (after64 (new_snd_una, old_snd_una)) {
net/mptcp/protocol.c +3 -0
@@ -1574,6 +1574,9 @@ static void __mptcp_subflow_push_pending(struct sock *sk, struct sock *ssk)mptcp_set_timeout (sk, ssk);tcp_push (ssk,0 , info.mss_now,tcp_sk (ssk)->nonagle, info.size_goal); +if (!mptcp_timer_pending (sk)) +mptcp_reset_timer (sk); +if (msk->snd_data_fin_enable && msk->snd_nxt +1 == msk->write_seq)mptcp_schedule_work (sk);
Signature · 1 line
2.26.2
Paolo Abeni
PATCH 5/5 selftests: mptcp: dump more info on errors
In reply to Paolo AbeniEven if that may sound completely unlikely, the mptcp implementation is not perfect, yet.
When the self-tests report an error we usually need more information of what the scripts currently report. iproute allow provides some additional goodies since a few releases, let's dump them.
--- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
tools/testing/selftests/net/mptcp/mptcp_connect.sh +8 -3
@@ -128,6 +128,7 @@ cleanup() local netns for netns in "$ns1" "$ns2" "$ns3" "$ns4";do ip netns del $netns + rm -f /tmp/$netns.{nstat,out} done }
@@ -438,16 +439,20 @@ do_transfer() kill ${cappid_connector} fi + NSTAT_HISTORY=/tmp/${listener_ns}.nstat ip netns exec ${listener_ns} nstat |grep Tcp > /tmp/${listener_ns}.out + [ ${listener_ns} != ${connector_ns} ] && NSTAT_HISTORY=/tmp/${connector_ns}.nstat ip netns exec ${connector_ns} nstat -s |grep Tcp > /tmp/${connector_ns}.out + local duration duration=$((stop-start)) duration=$(printf "(duration %05sms)" $duration) if [ ${rets} -ne 0 ] || [ ${retc} -ne 0 ]; then echo "$duration [ FAIL ] client exit code $retc, server $rets" 1>&2 echo -e "\nnetns ${listener_ns} socket stat for ${port}:" 1>&2 - ip netns exec ${listener_ns} ss -nita 1>&2 -o "sport = :$port" + ip netns exec ${listener_ns} ss -Menita 1>&2 -o "sport = :$port" + cat /tmp/${listener_ns}.out echo -e "\nnetns ${connector_ns} socket stat for ${port}:" 1>&2 - ip netns exec ${connector_ns} ss -nita 1>&2 -o "dport = :$port" - + ip netns exec ${connector_ns} ss -Menita 1>&2 -o "dport = :$port" + [ ${listener_ns} != ${connector_ns} ] && cat /tmp/${connector_ns}.out cat "$capout" return 1 fi
Signature · 1 line
2.26.2
Mat Martineau
Quoted 16 lines · Paolo Abeni
This includes new versions of 2 already posted patches (1/5 && 2/5) a rewrite of an already posted RFC patch (3/5) and a new fix.
Patch 1 should address issues/126
Patch 2 should address issues/130 && 125
Patch 3 is mostly a clean-up, possibly could land to net-next Patch 4 should fix issue 146
Finally patch 5 allowmptcp_connectto dump more info when errors happenPaolo Abeni (5):
mptcp: fix spurious retransmissions
mptcp: init mptcp request socket earlier
mptcp: better msk receive window updates
mptcp: add a missing retransmission timer scheduling
selftests: mptcp: dump more info on errors
Quoted 9 lines
net/mptcp/options.c | 10 ++--- net/mptcp/protocol.c | 44 +++++++++++-------- net/mptcp/protocol.h | 14 ++---- net/mptcp/subflow.c | 40 +++++++---------- .../selftests/net/mptcp/mptcp_connect.sh | 11 +++-- 5 files changed, 58 insertions(+), 61 deletions(-)Signature · 1 line
2.26.2
Given the discussion on IRC, does it make sense to apply these on the export branch and continue testing? Not sure if the error Matthieu encountered was introduced here or possibly an existing issue.
From a code review perspective, I don't have any changes to suggest.
--
Mat Martineau
Intel
Paolo Abeni
Quoted 25 lines · Mat Martineau
Quoted 23 lines · Paolo Abeni
This includes new versions of 2 already posted patches (1/5 && 2/5) a rewrite of an already posted RFC patch (3/5) and a new fix.
Patch 1 should address issues/126
Patch 2 should address issues/130 && 125
Patch 3 is mostly a clean-up, possibly could land to net-next Patch 4 should fix issue 146
Finally patch 5 allowmptcp_connectto dump more info when errors happenPaolo Abeni (5):
mptcp: fix spurious retransmissions
mptcp: init mptcp request socket earlier
mptcp: better msk receive window updates
mptcp: add a missing retransmission timer scheduling
selftests: mptcp: dump more info on errorsnet/mptcp/options.c | 10 ++--- net/mptcp/protocol.c | 44 +++++++++++-------- net/mptcp/protocol.h | 14 ++---- net/mptcp/subflow.c | 40 +++++++---------- .../selftests/net/mptcp/mptcp_connect.sh | 11 +++-- 5 files changed, 58 insertions(+), 61 deletions(-)
Quoted 6 lines
Quoted 2 lines
Signature · 1 line
2.26.2Given the discussion on IRC, does it make sense to apply these on the export branch and continue testing? Not sure if the error Matthieu encountered was introduced here or possibly an existing issue.
I suggest applying these ones. The issue reported by matttbe looks really a different one sharing the same synthoms as issues/147.
Thanks,
Paolo
Matthieu Baerts
[MPTCP] Re: [PATCH mptcp-net 5/5] selftests: mptcp: dump more info on errors
In reply to Paolo AbeniHi Paolo,
Quoted 25 lines · Paolo Abeni
Even if that may sound completely unlikely, the mptcp implementation is not perfect, yet.
When the self-tests report an error we usually need more information of what the scripts currently report. iproute allow provides some additional goodies since a few releases, let's dump them.
Signed-off-by Paolo Abeni <pabeni(a)redhat.com>--- tools/testing/selftests/net/mptcp/mptcp_connect.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)tools/testing/selftests/net/mptcp/mptcp_connect.sh +1
-0@@ -128,6 +128,7 @@ cleanup() local netns for netns in "$ns1" "$ns2" "$ns3" "$ns4";do ip netns del $netns + rm -f /tmp/$netns.{nstat,out} done }
tools/testing/selftests/net/mptcp/mptcp_connect.sh do_transfer() · line 443
Quoted 5 lines
tools/testing/selftests/net/mptcp/mptcp_connect.sh +2
-0@@ -438,16 +439,20 @@ do_transfer() kill ${cappid_connector} fi + NSTAT_HISTORY=/tmp/${listener_ns}.nstat ip netns exec ${listener_ns} nstat |grep Tcp > /tmp/${listener_ns}.out + [ ${listener_ns} != ${connector_ns} ] && NSTAT_HISTORY=/tmp/${connector_ns}.nstat ip netns exec ${connector_ns} nstat -s |grep Tcp > /tmp/${connector_ns}.out
When looking at applying it, "checkpatch" complained about the line length. It's not really an issue here with Bash but still I was thinking about going to the new line to improve the readability maybe.
But then I realised that the 2nd "nstat" is with "-s" but not the first one. Is it normal?
I suggest to apply it like that and fix it tomorrow if needed.
Cheers,
Matt
Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions www.tessares.net
Matthieu Baerts
Hi Paolo, Mat,
Quoted 29 lines · Paolo Abeni
Quoted 28 lines · Mat Martineau
Quoted 25 lines · Paolo Abeni
This includes new versions of 2 already posted patches (1/5 && 2/5) a rewrite of an already posted RFC patch (3/5) and a new fix.
Patch 1 should address issues/126
Patch 2 should address issues/130 && 125
Patch 3 is mostly a clean-up, possibly could land to net-next Patch 4 should fix issue 146
Finally patch 5 allowmptcp_connectto dump more info when errors happenPaolo Abeni (5):
mptcp: fix spurious retransmissions
mptcp: init mptcp request socket earlier
mptcp: better msk receive window updates
mptcp: add a missing retransmission timer scheduling
selftests: mptcp: dump more info on errorsnet/mptcp/options.c | 10 ++--- net/mptcp/protocol.c | 44 +++++++++++-------- net/mptcp/protocol.h | 14 ++---- net/mptcp/subflow.c | 40 +++++++---------- .../selftests/net/mptcp/mptcp_connect.sh | 11 +++-- 5 files changed, 58 insertions(+), 61 deletions(-)Signature · 1 line
2.26.2
Quoted 6 lines
Quoted 3 lines
Given the discussion on IRC, does it make sense to apply these on the export branch and continue testing? Not sure if the error Matthieu encountered was introduced here or possibly an existing issue.
I suggest applying these ones. The issue reported by matttbe looks really a different one sharing the same synthoms as issues/147.
Thank you for the patches and the reviews!
Just applied in our tree with Mat's RvB tag and a small modification, see below:
- f880caea34bf: mptcp: fix spurious retransmissions
- 2195b4539cdb: mptcp: init mptcp request socket earlier
- 980b6b800d23: mptcp: better msk receive window updates
- 773725f66d5c: mptcp: add a missing retransmission timer scheduling
- 7580f0d0573e: selftests: mptcp: dump more info on errors:
- Small modification, see my comment in 5/5 patch
- 4e11f1e2d526: selftests: mptcp: update nstat history
- Results: 3335749a2aa4..0976cfad9f6a
Tests + exports are in progress!
Cheers,
Matt
Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions www.tessares.net