selftests: mptcp: Add a tool to get specific msk_info
authorGang Yan <yangang@kylinos.cn>
Fri, 28 Feb 2025 14:38:35 +0000 (15:38 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Mar 2025 00:57:37 +0000 (16:57 -0800)
commit00f5e338cf7e2612ecf66d07b391135dd32f74e1
tree7c6eab528aa829e0281c963a409d0b948c4618e2
parent71f8992e34a9f358a53da6bfcd8b00226df177a2
selftests: mptcp: Add a tool to get specific msk_info

This patch enables the retrieval of the mptcp_info structure corresponding
to a specified MPTCP socket (msk). When multiple MPTCP connections are
present, specific information can be obtained for a given connection
through the 'mptcp_diag_dump_one' by using the 'token' associated with
the msk.

Signed-off-by: Gang Yan <yangang@kylinos.cn>
Co-developed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20250228-net-next-mptcp-coverage-small-opti-v1-1-f933c4275676@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/Makefile
tools/testing/selftests/net/mptcp/mptcp_diag.c [new file with mode: 0644]