selftests: mptcp: refactor send_query parameters for code clarity
authorGang Yan <yangang@kylinos.cn>
Fri, 2 May 2025 12:29:24 +0000 (14:29 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 5 May 2025 23:52:00 +0000 (16:52 -0700)
commit3fea468dca4f53fa0942661a0fc61dab8d6b0dc9
tree60aba102e53fc155f1572ebaf0e406e2452b8d0b
parentcd732d5110a22ea6d555c69a60a440b59ba281e3
selftests: mptcp: refactor send_query parameters for code clarity

This patch use 'inet_diag_req_v2' instead of 'token' as parameters of
send_query, and construct the req in 'get_mptcpinfo'.

This modification enhances the clarity of the code, and prepare for the
dump_subflow_info.

Co-developed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Geliang Tang <geliang@kernel.org>
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/20250502-net-next-mptcp-sft-inc-cover-v1-4-68eec95898fb@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_diag.c