]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests: mptcp: diag: check CURRESTAB counters
authorGeliang Tang <geliang.tang@linux.dev>
Fri, 22 Dec 2023 12:47:25 +0000 (13:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2024 13:33:33 +0000 (13:33 +0000)
commit81ab772819da408977ac79c0a17d8be57283379f
tree753a660eeb46364c1ff1654198d8f2ae81309ecd
parent0bd962dd86b2e5d097fc42c7411818851eca2995
selftests: mptcp: diag: check CURRESTAB counters

This patch adds a new helper chk_msk_cestab() to check the current
established connections counter MIB_CURRESTAB in diag.sh. Invoke it
to check the counter during the connection after every chk_msk_inuse().

Signed-off-by: Geliang Tang <geliang.tang@linux.dev>
Reviewed-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/diag.sh