All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next v3 0/4] mptcp: inet diag listen dump support
@ 2022-03-29 11:35 Florian Westphal
  2022-03-29 11:35 ` [PATCH mptcp-next v3 1/4] mptcp: diag: switch to context structure Florian Westphal
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Florian Westphal @ 2022-03-29 11:35 UTC (permalink / raw)
  To: mptcp; +Cc: Florian Westphal

Changes in v3: fix intendation, fix uninitialised var (Mat)
	       extend mptcp diag tests

Changes in v2: drop patch 4 and prefer msk->first (Paolo Abeni)

Done in a not-very-elegant way:
Iterate over tcp listen hash, then pick out the tcp sockets
with mptcp-ctx structure attached, then take the conn->sk for dumping.

First patch is preparation/cleanup.
Second patch gets rid of locking to avoid a lockdep splat.
If the socket lock is really needed (I don't see where) I can workaround
this by dropping locks temporarily when iterating the listen hash table,
but its a bit more awkward.

Sample output:
ss -Mil
State        Recv-Q Send-Q Local Address:Port  Peer Address:Port
LISTEN       0      20     127.0.0.1:12000     0.0.0.0:*
         subflows_max:2

Florian Westphal (4):
  mptcp: diag: switch to context structure
  mptcp: remove locking in mptcp_diag_fill_info
  mptcp: listen diag dump support
  selftests/mptcp: add diag listen tests

 net/mptcp/mptcp_diag.c                    | 105 +++++++++++++++++++++-
 net/mptcp/sockopt.c                       |   6 --
 tools/testing/selftests/net/mptcp/diag.sh |  38 ++++++++
 3 files changed, 140 insertions(+), 9 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-03-30 15:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29 11:35 [PATCH mptcp-next v3 0/4] mptcp: inet diag listen dump support Florian Westphal
2022-03-29 11:35 ` [PATCH mptcp-next v3 1/4] mptcp: diag: switch to context structure Florian Westphal
2022-03-29 11:35 ` [PATCH mptcp-next v3 2/4] mptcp: remove locking in mptcp_diag_fill_info Florian Westphal
2022-03-29 11:35 ` [PATCH mptcp-next v3 3/4] mptcp: listen diag dump support Florian Westphal
2022-03-29 11:35 ` [PATCH mptcp-next v3 4/4] selftests/mptcp: add diag listen tests Florian Westphal
2022-03-30  0:57 ` [PATCH mptcp-next v3 0/4] mptcp: inet diag listen dump support Mat Martineau
2022-03-30 15:02 ` 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.