All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next 0/4] mptcp: add some more diag info
@ 2023-05-04 16:39 Paolo Abeni
  2023-05-04 16:39 ` [PATCH mptcp-next 1/4] mptcp: add subflow unique id Paolo Abeni
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Paolo Abeni @ 2023-05-04 16:39 UTC (permalink / raw)
  To: mptcp

This is a follow up to the topic discussed in recent pubblic mtg.

Introduces unique id for accurate subflow stats tracking and
aggregate mptcp counters, plus some minimal self-tests.

The tests themself do not take in account support for running on
older kernel.

This is on top of "selftests: mptcp: centralize stats dumping" - 
that is should land not on top of the current export branch head.

That in turn will cause some non trivial conflicts with:

"mptcp: use get_retrans wrapper"

the resolution should like the following (for brevity only reporting
the lines affected by the conflict resolution)

---
@@ -2574,16 +2569,17 @@ static void mptcp_check_fastclose(struct mptcp_sock *msk)
 static void __mptcp_retrans(struct sock *sk)
 {
 	struct mptcp_sock *msk = mptcp_sk(sk);
+	struct mptcp_subflow_context *subflow;
 	struct mptcp_sendmsg_info info = {};
 	struct mptcp_data_frag *dfrag;
-	size_t copied = 0;
+	u16 already_sent, len = 0;
 	struct sock *ssk;
-	int ret;
+	int ret, err;

	// ...
@@ -2602,32 +2598,48 @@ static void __mptcp_retrans(struct sock *sk)
	// ...
 
-	release_sock(ssk);
+	already_send = max(dfrag->already_sent, len);
+	msk->bytes_retrans += already_sent - dfrag->alread_sent;
+	dfrag->already_sent = already_sent;

	// ...

Paolo Abeni (4):
  mptcp: add subflow unique id
  mptcp: move snd_una update earlier for fallback socket.
  mptcp: track some aggregate data counters.
  selftests: mptcp: explicitly tests aggregate countes

 include/uapi/linux/mptcp.h                    |  8 +++++++
 net/mptcp/options.c                           | 14 ++++++++++-
 net/mptcp/protocol.c                          | 20 ++++++++++------
 net/mptcp/protocol.h                          |  9 +++++++-
 net/mptcp/sockopt.c                           | 23 +++++++++++++++----
 .../selftests/net/mptcp/mptcp_sockopt.c       | 20 ++++++++++++++++
 6 files changed, 80 insertions(+), 14 deletions(-)

-- 
2.40.0


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

end of thread, other threads:[~2023-05-19  9:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-04 16:39 [PATCH mptcp-next 0/4] mptcp: add some more diag info Paolo Abeni
2023-05-04 16:39 ` [PATCH mptcp-next 1/4] mptcp: add subflow unique id Paolo Abeni
2023-05-17 14:25   ` Matthieu Baerts
2023-05-18 14:25     ` Paolo Abeni
2023-05-04 16:40 ` [PATCH mptcp-next 2/4] mptcp: move snd_una update earlier for fallback socket Paolo Abeni
2023-05-04 16:40 ` [PATCH mptcp-next 3/4] mptcp: track some aggregate data counters Paolo Abeni
2023-05-17 14:26   ` Matthieu Baerts
2023-05-18 14:17     ` Paolo Abeni
2023-05-19  9:18       ` Matthieu Baerts
2023-05-04 16:40 ` [PATCH mptcp-next 4/4] selftests: mptcp: explicitly tests aggregate countes Paolo Abeni
2023-05-17 14:27   ` Matthieu Baerts
2023-05-17 14:24 ` [PATCH mptcp-next 0/4] mptcp: add some more diag info Matthieu Baerts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.