From c36edd021eb10b85329ccbfcd0cdfc43529156ae Mon Sep 17 00:00:00 2001 From: Geliang Tang Date: Mon, 18 Dec 2023 16:47:16 +0800 Subject: [PATCH 1/2] Squash to "selftests: mptcp: check CURRESTAB counters" Add a comment for check_cestab(), and use cestab_ns1/cestab_ns2 in it as Matt suggested. Please update the subject as: ''' selftests: mptcp: join: check CURRESTAB counters ''' Signed-off-by: Geliang Tang Link: https://lore.kernel.org/r/361f60bc545f2b190bbbb6fbfb05e13b1a73d7a8.1702889134.git.geliang.tang@linux.dev Signed-off-by: Matthieu Baerts --- tools/testing/selftests/net/mptcp/mptcp_join.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh index 3cd066e6e2b065..3a5b630261910b 100755 --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh @@ -995,13 +995,14 @@ chk_cestab_nr() fi } +# $1 namespace 1, $2 namespace 2 check_cestab() { if [ -n "${cestab_ns1}" ]; then - chk_cestab_nr $1 1 + chk_cestab_nr ${1} ${cestab_ns1} fi if [ -n "${cestab_ns2}" ]; then - chk_cestab_nr $2 1 + chk_cestab_nr ${2} ${cestab_ns2} fi } From f111e119a46daff2881e1e92dd785dde5b3951a7 Mon Sep 17 00:00:00 2001 From: Matthieu Baerts Date: Mon, 18 Dec 2023 17:25:24 +0100 Subject: [PATCH 2/2] tg:msg: add 'join:' prefix As asked in commit c36edd021eb1 ("Squash to "selftests: mptcp: check CURRESTAB counters""). Signed-off-by: Matthieu Baerts --- .topmsg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.topmsg b/.topmsg index 6168b80afe54a1..0cda1fd59786b7 100644 --- a/.topmsg +++ b/.topmsg @@ -1,5 +1,5 @@ From: Geliang Tang -Subject: [PATCH] selftests: mptcp: check CURRESTAB counters +Subject: [PATCH] selftests: mptcp: join: check CURRESTAB counters This patch adds a new helper chk_cestab_nr() to check the current established connections counter MIB_CURRESTAB. Set the newly added