aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorGeliang Tang <[email protected]>2023-11-28 15:18:47 -0800
committerJakub Kicinski <[email protected]>2023-11-29 20:06:17 -0800
commit80775412882e273b8ef62124fae861cde8e6fb3d (patch)
tree8a90480cbb3b29a1e9a87df21b9b8dabce41f5f7 /tools/testing/selftests/bpf/progs/test_autoload.c
parent06848c0f341ee3f9226ed01e519c72e4d2b6f001 (diff)
selftests: mptcp: add chk_subflows_total helper
This patch adds a new helper chk_subflows_total(), in it use the newly added counter mptcpi_subflows_total to get the "correct" amount of subflows, including the initial one. To be compatible with old 'ss' or kernel versions not supporting this counter, get the total subflows by listing TCP connections that are MPTCP subflows: ss -ti state state established state syn-sent state syn-recv | grep -c tcp-ulp-mptcp. Reviewed-by: Matthieu Baerts <[email protected]> Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions