]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:35:03 +0000 (13:35 +0100)
commit1f24ba67ba49483bf03c23dd84e8e4399bb7da79
treeafa8e997cfeabb5965e92cabbd88a0f0a8274a51
parent1b1ce669a1f04f993c7960c83d87bf75e46d34f0
selftests: mptcp: diag: check CURRESTAB counters

commit 81ab772819da408977ac79c0a17d8be57283379f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/mptcp/diag.sh