]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: mptcp: add a test for mptcp_diag_dump_one
authorGang Yan <yangang@kylinos.cn>
Fri, 28 Feb 2025 14:38:36 +0000 (15:38 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 5 Mar 2025 00:57:38 +0000 (16:57 -0800)
commitba24001665704d27976a2f190cd8361e339f8581
tree5ad97586268deb794a62fc1ddef593783316ec97
parent00f5e338cf7e2612ecf66d07b391135dd32f74e1
selftests: mptcp: add a test for mptcp_diag_dump_one

This patch introduces a new 'chk_diag' test in diag.sh. It retrieves
the token for a specified MPTCP socket (msk) using the 'ss' command and
then accesses the 'mptcp_diag_dump_one' in kernel via ./mptcp_diag
to verify if the correct token is returned.

Link: https://github.com/multipath-tcp/mptcp_net-next/issues/524
Signed-off-by: Gang Yan <yangang@kylinos.cn>
Reviewed-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-2-f933c4275676@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/diag.sh