selftests: mptcp: join: simplify checksum_tests
authorGeliang Tang <tanggeliang@kylinos.cn>
Mon, 2 Sep 2024 10:46:01 +0000 (12:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 3 Sep 2024 22:25:43 +0000 (15:25 -0700)
commit0e2b4584d61abe8dc22db18e83c85429782793ee
tree5273894a98e14a33510e7394aa3ccab68d005b47
parent08eecd7e7fe79669ccab44dde518b10a2f7e48a7
selftests: mptcp: join: simplify checksum_tests

The four checksum tests are similar, only one line is different. So
a for-loop can be used to simplify these tests.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/20240902-net-next-mptcp-mib-mpjtx-misc-v1-10-d3e0f3773b90@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh