All of lore.kernel.org
 help / color / mirror / Atom feed
* [mptcp-next 0/7] Add 'dump_subflow' test in selftests
@ 2025-04-16  7:34 Gang Yan
  2025-04-16  7:34 ` [mptcp-next 1/7] selftests: mptcp: add struct params in mptcp_diag Gang Yan
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Gang Yan @ 2025-04-16  7:34 UTC (permalink / raw)
  To: mptcp; +Cc: Gang Yan

The 'subflow_get_info_size' is called only in 'inet_sk_attr_size', and
the only calltrace is that 'tcp_diag_dump_one'->'inet_diag_dump_one_icsk'
->'inet_sk_attr_size'.

So It's necessary to add 'get_subflow_info' in mptcp_diag.c to cover this
function. Given a specific TCP connection, it is possible to judge if
it is a MPTCP subflow by 'INET_ULP_INFO_MPTCP' and print 'subflow_info'.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/524

Gang Yan (7):
  selftests: mptcp: add struct params in mptcp_diag
  selftests: mptcp: refactor send_query parameters for code clarity
  selftests: mptcp: refine the 'iovlen' handling logic
  selftests: mptcp: refactor NLMSG handling with 'proto'
  selftests: mptcp: add a helper to get subflow_info
  selftests: mptcp: add a helper to print subflow_info
  selftests: mptcp: add chk_sublfow in diag.sh

 tools/testing/selftests/net/mptcp/diag.sh     |  55 +++++
 .../testing/selftests/net/mptcp/mptcp_diag.c  | 223 +++++++++++++++---
 2 files changed, 248 insertions(+), 30 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2025-04-16  8:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-16  7:34 [mptcp-next 0/7] Add 'dump_subflow' test in selftests Gang Yan
2025-04-16  7:34 ` [mptcp-next 1/7] selftests: mptcp: add struct params in mptcp_diag Gang Yan
2025-04-16  7:34 ` [mptcp-next 2/7] selftests: mptcp: refactor send_query parameters for code clarity Gang Yan
2025-04-16  7:34 ` [mptcp-next 3/7] selftests: mptcp: refine the 'iovlen' handling logic Gang Yan
2025-04-16  7:34 ` [mptcp-next 4/7] selftests: mptcp: refactor NLMSG handling with 'proto' Gang Yan
2025-04-16  7:35 ` [mptcp-next 5/7] selftests: mptcp: add a helper to get subflow_info Gang Yan
2025-04-16  8:35   ` Geliang Tang
2025-04-16  7:35 ` [mptcp-next 6/7] selftests: mptcp: add a helper to print subflow_info Gang Yan
2025-04-16  7:35 ` [mptcp-next 7/7] selftests: mptcp: add chk_sublfow in diag.sh Gang Yan
2025-04-16  8:58 ` [mptcp-next 0/7] Add 'dump_subflow' test in selftests MPTCP CI

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.