Skip to contentSkip to conversation

Squash-to: "mptcp: allow picking different xmit subflows"

PATCH In review Paolo Abeni 3 participants 8 messages Sep 9, 2020 – Sep 11, 2020

Subsystems (3)
lore
Share & tools
lore

Paolo Abeni

author
#0 lore raw

PATCH 1/2 Squash-to: "mptcp: allow picking different xmit subflows"

This improves the current packet scheduler for scenarios where the msk sockets is using different links with different bandwith limits.

The commit comment should be changed into:

"""
Update the scheduler to less trivial heuristic: cache the last used subflow, and try to send on it a reasonably long burst of data.

When the burst or the subflow send space is exhausted, pick the subflow with the lower ratio between write space and send buffer - that is, the subflow with the greater relative amount of free space.
"""

Signed-off-by Paolo Abeni <pabeni(a)redhat.com>

---
v1 -> v2:
- remove some unneeded magic number
- fix potential division by 0 - Florian

Note:
- subflows are now selected when sk_stream_memory_free(ssk), while before we used sk_stream_is_writeable(ssk). The current choice is closer to plain TCP and IMHO more correct, but even the old one should not be buggy.
Anyhow I saw reproducible write error (EAGAIN) when using sk_stream_is_writeable() with this strategy, and I was unable to track them down, so possibly there is some other bug there I could not find.
- simuilt xmit self-tests are still failing, even if we are now closer to success. The failures are now caused by the high delay configured on the virtual link.
This problem would be addressed by a larger initial send buffer, but the current xmit path is unable to cope with that correctly:
with a larger send buffer it will send pkts outside the MPTCP window.
To properly address the above we additionally need something alike "mptcp: keep track of receivers advertised window" from Florian, plus the ability to enqueue data at the MPTCP level and send it when the MPTCP level window is open.

---
 net/mptcp/protocol.c | 107 ++++++++++++++++++++-----------------------
 1 file changed, 49 insertions(+), 58 deletions(-)
net/mptcp/protocol.c +49 -58
index eb833ecbba9e..7469e89b3d7a 100644
@@ -1063,26 +1063,25 @@ static bool mptcp_subflow_active(struct mptcp_subflow_context *subflow)
 	return ((1 << ssk->sk_state) & (TCPF_ESTABLISHED | TCPF_CLOSE_WAIT));
 }
 
-#define MPTCP_SEND_BURST_SIZE		(1 << 15)
+#define MPTCP_SEND_BURST_SIZE		((1 << 16) - \
+					 sizeof(struct tcphdr) - \
+					 MAX_TCP_OPTION_SPACE - \
+					 sizeof(struct ipv6hdr) - \
+					 sizeof(struct frag_hdr))
 
-static struct list_head *mptcp_next_subflow(struct mptcp_sock *msk,
-					    struct list_head *pos,
-					    bool wrap_around)
-{
-	if (list_is_last(pos, &msk->conn_list) && wrap_around)
-		return msk->conn_list.next;
-	return pos->next;
-}
+struct subflow_send_info {
+	struct sock *ssk;
+	uint64_t ratio;
+};
 
 static struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk,
 					   u32 *sndbuf)
 {
+	struct subflow_send_info send_info[2];
 	struct mptcp_subflow_context *subflow;
-	struct sock *next_backup = NULL;
-	struct list_head *pos, *start;
-	struct sock *next_ssk = NULL;
-	bool wrap_around;
-	bool free;
+	int i, nr_active = 0;
+	int64_t ratio, pace;
+	struct sock *ssk;
 
 	sock_owned_by_me((struct sock *)msk);
 
@@ -1095,65 +1094,57 @@ static struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk,
 		return msk->first;
 	}
 
-	/* lookup the first writeable subflow and first writable back subflow
-	 * starting from last used, with wrap-around
-	 */
-	if (msk->last_snd) {
-		start = &mptcp_subflow_ctx(msk->last_snd)->node;
-		wrap_around = true;
-	} else {
-		start = &msk->conn_list;
-		wrap_around = false;
-	}
-	pr_debug("msk=%p start=%p pos=%p wrap_around=%d last=%p", msk, start,
-		 mptcp_next_subflow(msk, start, wrap_around), wrap_around,
-		 msk->last_snd);
-	for (pos = mptcp_next_subflow(msk, start, wrap_around); pos != start;
-	     pos = mptcp_next_subflow(msk, pos, wrap_around)) {
-		struct sock *ssk;
+	/* re-use last subflow, if the burst allow that */
+	if (msk->last_snd && msk->snd_burst > 0 &&
+	    sk_stream_memory_free(msk->last_snd) &&
+	    mptcp_subflow_active(mptcp_subflow_ctx(msk->last_snd))) {
+		mptcp_for_each_subflow(msk, subflow) {
+			ssk =  mptcp_subflow_tcp_sock(subflow);
+			*sndbuf = max(tcp_sk(ssk)->snd_wnd, *sndbuf);
+		}
+		return msk->last_snd;
+	}
 
-		subflow = list_entry(pos, struct mptcp_subflow_context, node);
+	/* pick the subflow with the lower wmem/wspace ratio */
+	for (i = 0; i < 2; ++i) {
+		send_info[i].ssk = NULL;
+		send_info[i].ratio = -1;
+	}
+	mptcp_for_each_subflow(msk, subflow) {
 		ssk =  mptcp_subflow_tcp_sock(subflow);
 		if (!mptcp_subflow_active(subflow))
 			continue;
 
+		nr_active += !subflow->backup;
 		*sndbuf = max(tcp_sk(ssk)->snd_wnd, *sndbuf);
-		if (next_backup || next_ssk)
+		if (!sk_stream_memory_free(subflow->tcp_sock))
 			continue;
 
-		free = sk_stream_is_writeable(subflow->tcp_sock);
-		if (!free)
+		pace = READ_ONCE(ssk->sk_pacing_rate);
+		if (!pace)
 			continue;
 
-		if (!subflow->backup && !next_ssk)
-			next_ssk = ssk;
-
-		if (subflow->backup && !next_backup)
-			next_backup = ssk;
+		ratio = (int64_t)READ_ONCE(ssk->sk_wmem_queued) << 32 / pace;
+		if (ratio < send_info[subflow->backup].ratio) {
+			send_info[subflow->backup].ssk = ssk;
+			send_info[subflow->backup].ratio = ratio;
+		}
 	}
-	if (!next_ssk)
-		next_ssk = next_backup;
 
-	if (msk->last_snd) {
-		*sndbuf = max(tcp_sk(msk->last_snd)->snd_wnd, *sndbuf);
-		free = sk_stream_memory_free(msk->last_snd);
-	} else {
-		free = false;
-	}
-	pr_debug("msk=%p ssk=%p:%d last=%p last free=%d burst=%d", msk,
-		 next_ssk, next_ssk ? sk_stream_wspace(next_ssk) : 0,
-		 msk->last_snd, free, msk->snd_burst);
+	/* pick the best backup if no other subflow is active */
+	if (!nr_active)
+		send_info[0].ssk = send_info[1].ssk;
 
-	/* use the looked-up subflow if the previusly one has exauted the burst
-	 * or is not writable
-	 */
-	if (next_ssk && (!free || msk->snd_burst <= 0)) {
-		msk->last_snd = next_ssk;
+	pr_debug("msk=%p nr_active=%d ssk=%p:%lld backup=%p:%lld",
+		 msk, nr_active, send_info[0].ssk, send_info[0].ratio,
+		 send_info[1].ssk, send_info[1].ratio);
+	if (send_info[0].ssk) {
+		msk->last_snd = send_info[0].ssk;
 		msk->snd_burst = min_t(int, MPTCP_SEND_BURST_SIZE,
-				       sk_stream_wspace(next_ssk));
-		free = true;
+				       sk_stream_wspace(msk->last_snd));
+		return msk->last_snd;
 	}
-	return free ? msk->last_snd : NULL;
+	return NULL;
 }
 
 static void ssk_check_wmem(struct mptcp_sock *msk)
Signature · 1 line
2.26.2
author
#1 lore raw

PATCH 2/2 Squash-to: "mptcp: simult flow self-tests"

Tune a bit the timing parameters, comment-out unbalanced bwidth test cases and enable simult self-tests - should pass now.

Signed-off-by Paolo Abeni <pabeni(a)redhat.com>
---
 tools/testing/selftests/net/mptcp/Makefile        |  3 ++-
 tools/testing/selftests/net/mptcp/simult_flows.sh | 13 ++++++++-----
 2 files changed, 10 insertions(+), 6 deletions(-)
tools/testing/selftests/net/mptcp/Makefile +2 -1
index aa254aefc2c3..00bb158b4a5d 100644
@@ -5,7 +5,8 @@ KSFT_KHDR_INSTALL := 1
 
 CFLAGS =  -Wall -Wl,--no-as-needed -O2 -g  -I$(top_srcdir)/usr/include
 
-TEST_PROGS := mptcp_connect.sh pm_netlink.sh mptcp_join.sh diag.sh
+TEST_PROGS := mptcp_connect.sh pm_netlink.sh mptcp_join.sh diag.sh \
+	      simult_flows.sh
 
 TEST_GEN_FILES = mptcp_connect pm_nl_ctl
 
tools/testing/selftests/net/mptcp/simult_flows.sh +8 -5
index 487a7f88ed05..0d88225daa02 100755
@@ -239,8 +239,9 @@ run_test()
 	# time is measure in ms
 	local time=$((size * 8 * 1000 / (( $rate1 + $rate2) * 1024 *1024) ))
 
-	# mptcp_connect will sleep a bit to allow for mp_join completion
-	time=$((time + 1000))
+	# mptcp_connect will do some sleeps to allow the mp_join handshake
+	# completion
+	time=$((time + 1350))
 
 	printf "%-50s" "$msg"
 	do_transfer $small $large $((time * 11 / 10))
@@ -284,7 +285,9 @@ done
 setup
 run_test 10 10 0 0 "balanced bwidth"
 run_test 10 10 1 50 "balanced bwidth with unbalanced delay"
-run_test 30 10 0 0 "unbalanced bwidth"
-run_test 30 10 1 50 "unbalanced bwidth with unbalanced delay"
-run_test 30 10 50 1 "unbalanced bwidth with opposed, unbalanced delay"
+
+# we still need some additional infrastructure to pass the following test-cases
+# run_test 30 10 0 0 "unbalanced bwidth"
+# run_test 30 10 1 50 "unbalanced bwidth with unbalanced delay"
+# run_test 30 10 50 1 "unbalanced bwidth with opposed, unbalanced delay"
 exit $ret
Signature · 1 line
2.26.2
#2 lore raw

[MPTCP] Re: [PATCH net-next 2/2] Squash-to: "mptcp: simult flow self-tests"

Hi Paolo,

Quoted 2 lines · Paolo Abeni

Tune a bit the timing parameters, comment-out unbalanced bwidth test cases and enable simult self-tests - should pass now.

Thank you for the patch!

- d7cc2da649bc: "squashed" patch 2/2 in "mptcp: simult flow self-tests"
- 4822f58422e9..895b3d8264e8: result

Tests + export will be started soon (after having applied your other patches)

Cheers,
Matt

Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
#3 lore raw
In reply to Paolo Abeni
Quoted 35 lines · Paolo Abeni

This improves the current packet scheduler for scenarios where the msk sockets is using different links with different bandwith limits.

The commit comment should be changed into:

"""
Update the scheduler to less trivial heuristic: cache the last used subflow, and try to send on it a reasonably long burst of data.

When the burst or the subflow send space is exhausted, pick the subflow with the lower ratio between write space and send buffer - that is, the subflow with the greater relative amount of free space.
"""

Signed-off-by Paolo Abeni <pabeni(a)redhat.com>

---
v1 -> v2:
- remove some unneeded magic number
- fix potential division by 0 - Florian

Note:
- subflows are now selected when sk_stream_memory_free(ssk), while before we used sk_stream_is_writeable(ssk). The current choice is closer to plain TCP and IMHO more correct, but even the old one should not be buggy.
Anyhow I saw reproducible write error (EAGAIN) when using sk_stream_is_writeable() with this strategy, and I was unable to track them down, so possibly there is some other bug there I could not find.
- simuilt xmit self-tests are still failing, even if we are now closer to success. The failures are now caused by the high delay configured on the virtual link.

Quoted 8 lines

This problem would be addressed by a larger initial send buffer, but the current xmit path is unable to cope with that correctly:
with a larger send buffer it will send pkts outside the MPTCP window.
To properly address the above we additionally need something alike "mptcp: keep track of receivers advertised window" from Florian, plus the ability to enqueue data at the MPTCP level and send it when the MPTCP level window is open.

Is this what the tcp_cleanup_rbuf() patch helps with?

I do like this approach better for the default scheduler, but hopefully some of our community members who wrote graduate theses on this kind of thing can give a more informed opinion at the meeting tomorrow :)

Mat

Quoted 152 lines

---
net/mptcp/protocol.c | 107 ++++++++++++++++++++-----------------------

1 file changed, 49 insertions(+), 58 deletions(-)
net/mptcp/protocol.c +49 -58
index eb833ecbba9e..7469e89b3d7a 100644
@@ -1063,26 +1063,25 @@ static bool mptcp_subflow_active(struct mptcp_subflow_context *subflow)
 	return ((1 << ssk->sk_state) & (TCPF_ESTABLISHED | TCPF_CLOSE_WAIT));
 }
 
-#define MPTCP_SEND_BURST_SIZE		(1 << 15)
+#define MPTCP_SEND_BURST_SIZE		((1 << 16) - \
+					 sizeof(struct tcphdr) - \
+					 MAX_TCP_OPTION_SPACE - \
+					 sizeof(struct ipv6hdr) - \
+					 sizeof(struct frag_hdr))
 
-static struct list_head *mptcp_next_subflow(struct mptcp_sock *msk,
-					    struct list_head *pos,
-					    bool wrap_around)
-{
-	if (list_is_last(pos, &msk->conn_list) && wrap_around)
-		return msk->conn_list.next;
-	return pos->next;
-}
+struct subflow_send_info {
+	struct sock *ssk;
+	uint64_t ratio;
+};
 
 static struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk,
 					   u32 *sndbuf)
 {
+	struct subflow_send_info send_info[2];
 	struct mptcp_subflow_context *subflow;
-	struct sock *next_backup = NULL;
-	struct list_head *pos, *start;
-	struct sock *next_ssk = NULL;
-	bool wrap_around;
-	bool free;
+	int i, nr_active = 0;
+	int64_t ratio, pace;
+	struct sock *ssk;
 
 	sock_owned_by_me((struct sock *)msk);
 
@@ -1095,65 +1094,57 @@ static struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk,
 		return msk->first;
 	}
 
-	/* lookup the first writeable subflow and first writable back subflow
-	 * starting from last used, with wrap-around
-	 */
-	if (msk->last_snd) {
-		start = &mptcp_subflow_ctx(msk->last_snd)->node;
-		wrap_around = true;
-	} else {
-		start = &msk->conn_list;
-		wrap_around = false;
-	}
-	pr_debug("msk=%p start=%p pos=%p wrap_around=%d last=%p", msk, start,
-		 mptcp_next_subflow(msk, start, wrap_around), wrap_around,
-		 msk->last_snd);
-	for (pos = mptcp_next_subflow(msk, start, wrap_around); pos != start;
-	     pos = mptcp_next_subflow(msk, pos, wrap_around)) {
-		struct sock *ssk;
+	/* re-use last subflow, if the burst allow that */
+	if (msk->last_snd && msk->snd_burst > 0 &&
+	    sk_stream_memory_free(msk->last_snd) &&
+	    mptcp_subflow_active(mptcp_subflow_ctx(msk->last_snd))) {
+		mptcp_for_each_subflow(msk, subflow) {
+			ssk =  mptcp_subflow_tcp_sock(subflow);
+			*sndbuf = max(tcp_sk(ssk)->snd_wnd, *sndbuf);
+		}
+		return msk->last_snd;
+	}
 
-		subflow = list_entry(pos, struct mptcp_subflow_context, node);
+	/* pick the subflow with the lower wmem/wspace ratio */
+	for (i = 0; i < 2; ++i) {
+		send_info[i].ssk = NULL;
+		send_info[i].ratio = -1;
+	}
+	mptcp_for_each_subflow(msk, subflow) {
 		ssk =  mptcp_subflow_tcp_sock(subflow);
 		if (!mptcp_subflow_active(subflow))
 			continue;
 
+		nr_active += !subflow->backup;
 		*sndbuf = max(tcp_sk(ssk)->snd_wnd, *sndbuf);
-		if (next_backup || next_ssk)
+		if (!sk_stream_memory_free(subflow->tcp_sock))
 			continue;
 
-		free = sk_stream_is_writeable(subflow->tcp_sock);
-		if (!free)
+		pace = READ_ONCE(ssk->sk_pacing_rate);
+		if (!pace)
 			continue;
 
-		if (!subflow->backup && !next_ssk)
-			next_ssk = ssk;
-
-		if (subflow->backup && !next_backup)
-			next_backup = ssk;
+		ratio = (int64_t)READ_ONCE(ssk->sk_wmem_queued) << 32 / pace;
+		if (ratio < send_info[subflow->backup].ratio) {
+			send_info[subflow->backup].ssk = ssk;
+			send_info[subflow->backup].ratio = ratio;
+		}
 	}
-	if (!next_ssk)
-		next_ssk = next_backup;
 
-	if (msk->last_snd) {
-		*sndbuf = max(tcp_sk(msk->last_snd)->snd_wnd, *sndbuf);
-		free = sk_stream_memory_free(msk->last_snd);
-	} else {
-		free = false;
-	}
-	pr_debug("msk=%p ssk=%p:%d last=%p last free=%d burst=%d", msk,
-		 next_ssk, next_ssk ? sk_stream_wspace(next_ssk) : 0,
-		 msk->last_snd, free, msk->snd_burst);
+	/* pick the best backup if no other subflow is active */
+	if (!nr_active)
+		send_info[0].ssk = send_info[1].ssk;
 
-	/* use the looked-up subflow if the previusly one has exauted the burst
-	 * or is not writable
-	 */
-	if (next_ssk && (!free || msk->snd_burst <= 0)) {
-		msk->last_snd = next_ssk;
+	pr_debug("msk=%p nr_active=%d ssk=%p:%lld backup=%p:%lld",
+		 msk, nr_active, send_info[0].ssk, send_info[0].ratio,
+		 send_info[1].ssk, send_info[1].ratio);
+	if (send_info[0].ssk) {
+		msk->last_snd = send_info[0].ssk;
 		msk->snd_burst = min_t(int, MPTCP_SEND_BURST_SIZE,
-				       sk_stream_wspace(next_ssk));
-		free = true;
+				       sk_stream_wspace(msk->last_snd));
+		return msk->last_snd;
 	}
-	return free ? msk->last_snd : NULL;
+	return NULL;
 }
 
 static void ssk_check_wmem(struct mptcp_sock *msk)
Signature · 1 line
2.26.2

--
Mat Martineau
Intel

author
#4 lore raw
Quoted 46 lines · Mat Martineau
Quoted 35 lines · Paolo Abeni

This improves the current packet scheduler for scenarios where the msk sockets is using different links with different bandwith limits.

The commit comment should be changed into:

"""
Update the scheduler to less trivial heuristic: cache the last used subflow, and try to send on it a reasonably long burst of data.

When the burst or the subflow send space is exhausted, pick the subflow with the lower ratio between write space and send buffer - that is, the subflow with the greater relative amount of free space.
"""

Signed-off-by Paolo Abeni <pabeni(a)redhat.com>

---
v1 -> v2:
- remove some unneeded magic number
- fix potential division by 0 - Florian

Note:
- subflows are now selected when sk_stream_memory_free(ssk), while before we used sk_stream_is_writeable(ssk). The current choice is closer to plain TCP and IMHO more correct, but even the old one should not be buggy.
Anyhow I saw reproducible write error (EAGAIN) when using sk_stream_is_writeable() with this strategy, and I was unable to track them down, so possibly there is some other bug there I could not find.
- simuilt xmit self-tests are still failing, even if we are now closer to success. The failures are now caused by the high delay configured on the virtual link.

Quoted 8 lines

This problem would be addressed by a larger initial send buffer, but the current xmit path is unable to cope with that correctly:
with a larger send buffer it will send pkts outside the MPTCP window.
To properly address the above we additionally need something alike "mptcp: keep track of receivers advertised window" from Florian, plus the ability to enqueue data at the MPTCP level and send it when the MPTCP level window is open.

Quoted 1 line

Is this what the tcp_cleanup_rbuf() patch helps with?

There are 2 issues:

1) very long delay introduced by missing acks, addressed by the tcp_cleanup_rbuf() patch

2) inability of current MPTCP xmit path code to handle with large sndbuf - specifically larger then the send window. This latter needs quite a bit of rework - which is in progress - comprising Florian's snd_wnd patches and implementing the mptcp equivalent of tcp_push_pending_frames()

Cheers,

Paolo

#5 lore raw
In reply to Paolo Abeni

Hi Paolo,

Thank you for the patch!

Quoted 18 lines · Paolo Abeni

This improves the current packet scheduler for scenarios where the msk sockets is using different links with different bandwith limits.

The commit comment should be changed into:

"""
Update the scheduler to less trivial heuristic: cache the last used subflow, and try to send on it a reasonably long burst of data.

When the burst or the subflow send space is exhausted, pick the subflow with the lower ratio between write space and send buffer - that is, the subflow with the greater relative amount of free space.
"""

Signed-off-by Paolo Abeni <pabeni(a)redhat.com>

(...)

net/mptcp/protocol.c static struct sock *mptcp_subflow_get_send(struct mptcp_sock *msk, · line 1140

Quoted 12 lines
net/mptcp/protocol.c +6 -5
+	/* pick the best backup if no other subflow is active */
+	if (!nr_active)
+		send_info[0].ssk = send_info[1].ssk;
 
-	/* use the looked-up subflow if the previusly one has exauted the burst
-	 * or is not writable
-	 */
-	if (next_ssk && (!free || msk->snd_burst <= 0)) {
-		msk->last_snd = next_ssk;
+	pr_debug("msk=%p nr_active=%d ssk=%p:%lld backup=%p:%lld",
+		 msk, nr_active, send_info[0].ssk, send_info[0].ratio,
+		 send_info[1].ssk, send_info[1].ratio);

We could maybe have this pr_debug before "if (!nr_active)" just above to avoid confusions but that's just a debug print. For me we can apply it like that. I can also move this pr_debug when applying if you want to.

The rest is (very) good to me!

Cheers,
Matt

Quoted 14 lines
net/mptcp/protocol.c +5 -3
+	if (send_info[0].ssk) {
+		msk->last_snd = send_info[0].ssk;
  		msk->snd_burst = min_t(int, MPTCP_SEND_BURST_SIZE,
-				       sk_stream_wspace(next_ssk));
-		free = true;
+				       sk_stream_wspace(msk->last_snd));
+		return msk->last_snd;
  	}
-	return free ? msk->last_snd : NULL;
+	return NULL;
  }
 
  static void ssk_check_wmem(struct mptcp_sock *msk)
Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
#6 lore raw

Hi Paolo,

Quoted 39 lines · Matthieu Baerts

Hi Paolo,

Thank you for the patch!

Quoted 18 lines · Paolo Abeni

This improves the current packet scheduler for scenarios where the msk sockets is using different links with different bandwith limits.

The commit comment should be changed into:

"""
Update the scheduler to less trivial heuristic: cache the last used subflow, and try to send on it a reasonably long burst of data.

When the burst or the subflow send space is exhausted, pick the subflow with the lower ratio between write space and send buffer - that is, the subflow with the greater relative amount of free space.
"""

Signed-off-by Paolo Abeni <pabeni(a)redhat.com>

(...)

Quoted 4 lines

+    /* pick the best backup if no other subflow is active */ +    if (!nr_active)
+        send_info[0].ssk = send_info[1].ssk;
-    /* use the looked-up subflow if the previusly one has exauted the

Quoted 8 lines

burst
-     * or is not writable
-     */
-    if (next_ssk && (!free || msk->snd_burst <= 0)) { -        msk->last_snd = next_ssk;
+    pr_debug("msk=%p nr_active=%d ssk=%p:%lld backup=%p:%lld", +         msk, nr_active, send_info[0].ssk, send_info[0].ratio, +         send_info[1].ssk, send_info[1].ratio);

Quoted 3 lines

We could maybe have this pr_debug before "if (!nr_active)" just above to avoid confusions but that's just a debug print. For me we can apply it like that. I can also move this pr_debug when applying if you want to.

I did this small notification there:

- 88d1a56e2c6f: mptcp: move pr_debug before changes
- 2e7e0cdd7acd..2998848b5594: result

Feel free to revert if you prefer the other way!

Cheers,
Matt

Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net
#7 lore raw
In reply to Paolo Abeni

Hi Paolo, Mat, Florian,

Quoted 11 lines · Paolo Abeni

This improves the current packet scheduler for scenarios where the msk sockets is using different links with different bandwith limits.

The commit comment should be changed into:

"""
Update the scheduler to less trivial heuristic: cache the last used subflow, and try to send on it a reasonably long burst of data.

Quoted 7 lines

When the burst or the subflow send space is exhausted, pick the subflow with the lower ratio between write space and send buffer - that is, the subflow with the greater relative amount of free space.
"""

Signed-off-by Paolo Abeni <pabeni(a)redhat.com>

Thank you for the patch and the reviews!

- 145c1405c183: "squashed" patch 1/2 in "mptcp: allow picking different xmit subflows"
- a2332e5650da: tg:msg: explain new heuristic
- b5e4b1109338..4822f58422e9: result

Tests + export will be started soon (after having applied your other patches)

Cheers,
Matt

Signature · 2 lines
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net