MPTCP Linux Development
 help / color / mirror / Atom feed
* [PATCH mptcp-next 0/5] mptcp: uniform code style and fix checkpatch splats
@ 2022-11-14 16:45 Matthieu Baerts
  2022-11-14 16:45 ` [PATCH mptcp-next 1/5] Squash-to: "mptcp: implement delayed seq generation for passive fastopen" Matthieu Baerts
                   ` (5 more replies)
  0 siblings, 6 replies; 14+ messages in thread
From: Matthieu Baerts @ 2022-11-14 16:45 UTC (permalink / raw)
  To: mptcp; +Cc: Matthieu Baerts, Paolo Abeni, Dmytro Shytyi

Just some small quick fixes about "issues" I saw when I applied the patches last
week. Nothing important: function names, place in the .h and small checkpatch
splats.

Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Dmytro Shytyi <dmytro@shytyi.net>

Matthieu Baerts (5):
  Squash-to: "mptcp: implement delayed seq generation for passive
    fastopen"
  Squash-to (part 1): "mptcp: add subflow_v(4,6)_send_synack()"
  Squash-to (part 2): "mptcp: add subflow_v(4,6)_send_synack()"
  Squash-to (part 3): "mptcp: add subflow_v(4,6)_send_synack()"
  Squash-to: "selftests: mptcp: mptfo Initiator/Listener"

 net/mptcp/fastopen.c                              | 8 ++++----
 net/mptcp/protocol.h                              | 8 ++++----
 net/mptcp/subflow.c                               | 6 +++---
 tools/testing/selftests/net/mptcp/mptcp_connect.c | 1 -
 4 files changed, 11 insertions(+), 12 deletions(-)


base-commit: ff1606d98e1c56fd9f181210e5463528173e99c5
-- 
2.37.2


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH mptcp-next] Squash-to: "selftests: mptcp: mptfo Initiator/Listener"
@ 2022-11-11 10:17 Paolo Abeni
  2022-11-11 11:55 ` Squash-to: "selftests: mptcp: mptfo Initiator/Listener": Tests Results MPTCP CI
  0 siblings, 1 reply; 14+ messages in thread
From: Paolo Abeni @ 2022-11-11 10:17 UTC (permalink / raw)
  To: mptcp; +Cc: Dmytro Shytyi

We need to cope with multiple iteration of the remote peer address
selection loop

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
---
 tools/testing/selftests/net/mptcp/mptcp_connect.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tools/testing/selftests/net/mptcp/mptcp_connect.c b/tools/testing/selftests/net/mptcp/mptcp_connect.c
index 134e569cd75a..8635619ab1fd 100644
--- a/tools/testing/selftests/net/mptcp/mptcp_connect.c
+++ b/tools/testing/selftests/net/mptcp/mptcp_connect.c
@@ -375,13 +375,12 @@ static int sock_connect_mptcp(const char * const remoteaddr,
 			set_mark(sock, cfg_mark);
 
 		if (cfg_sockopt_types.mptfo) {
-			winfo->len = read(infd, winfo->buf, sizeof(winfo->buf));
+			if (!winfo->len)
+				winfo->len = read(infd, winfo->buf, sizeof(winfo->buf));
 
 			syn_copied = sendto(sock, winfo->buf, winfo->len, MSG_FASTOPEN,
 					    a->ai_addr, a->ai_addrlen);
-			if (syn_copied < 0)
-				perror("sendto");
-			if (syn_copied) {
+			if (syn_copied >= 0) {
 				winfo->off = syn_copied;
 				winfo->len -= syn_copied;
 				*peer = a;
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-11-15 15:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14 16:45 [PATCH mptcp-next 0/5] mptcp: uniform code style and fix checkpatch splats Matthieu Baerts
2022-11-14 16:45 ` [PATCH mptcp-next 1/5] Squash-to: "mptcp: implement delayed seq generation for passive fastopen" Matthieu Baerts
2022-11-14 16:45 ` [PATCH mptcp-next 2/5] Squash-to (part 1): "mptcp: add subflow_v(4,6)_send_synack()" Matthieu Baerts
2022-11-14 16:45 ` [PATCH mptcp-next 3/5] Squash-to (part 2): " Matthieu Baerts
2022-11-14 16:46 ` [PATCH mptcp-next 4/5] Squash-to (part 3): " Matthieu Baerts
2022-11-14 16:46 ` [PATCH mptcp-next 5/5] Squash-to: "selftests: mptcp: mptfo Initiator/Listener" Matthieu Baerts
2022-11-14 18:23   ` Squash-to: "selftests: mptcp: mptfo Initiator/Listener": Tests Results MPTCP CI
2022-11-14 16:58 ` [PATCH mptcp-next 0/5] mptcp: uniform code style and fix checkpatch splats Matthieu Baerts
2022-11-14 17:08   ` Paolo Abeni
2022-11-14 17:11     ` Matthieu Baerts
2022-11-15 15:22       ` Paolo Abeni
2022-11-15 15:29         ` Matthieu Baerts
2022-11-15 15:48         ` Matthieu Baerts
  -- strict thread matches above, loose matches on Subject: below --
2022-11-11 10:17 [PATCH mptcp-next] Squash-to: "selftests: mptcp: mptfo Initiator/Listener" Paolo Abeni
2022-11-11 11:55 ` Squash-to: "selftests: mptcp: mptfo Initiator/Listener": Tests Results MPTCP CI

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox