diff options
author | 2023-12-22 13:47:24 +0100 | |
---|---|---|
committer | 2024-01-02 13:33:33 +0000 | |
commit | 0bd962dd86b2e5d097fc42c7411818851eca2995 (patch) | |
tree | 0a01326bc089278b4d43b84c2bb67132d41de8d7 /tools/testing/selftests/bpf/progs/exceptions.c | |
parent | mptcp: use mptcp_set_state (diff) | |
download | wireguard-linux-0bd962dd86b2e5d097fc42c7411818851eca2995.tar.xz wireguard-linux-0bd962dd86b2e5d097fc42c7411818851eca2995.zip |
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
variables cestab_ns1 and cestab_ns2 to indicate how many connections
are expected in ns1 or ns2.
Invoke check_cestab() to check the counter during the connection in
do_transfer() and invoke chk_cestab_nr() to re-check it when the
connection closed. These checks are embedded in add_tests().
Signed-off-by: Geliang Tang <geliang.tang@linux.dev>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/exceptions.c')
0 files changed, 0 insertions, 0 deletions