diff options
author | Geliang Tang <[email protected]> | 2023-11-28 15:18:55 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-11-29 20:06:18 -0800 |
commit | 61c131f5d4d2b79904af2fdcb2839a9db8e7c55c (patch) | |
tree | 75ac557aac715967cf653d45c3b6b1d6322c7485 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | b850f2c7dd85ecd14a333685c4ffd23f12665e94 (diff) |
selftests: mptcp: add mptcp_lib_get_counter
To avoid duplicated code in different MPTCP selftests, we can add
and use helpers defined in mptcp_lib.sh.
The helper get_counter() in mptcp_join.sh and get_mib_counter() in
mptcp_connect.sh have the same functionality, export get_counter() into
mptcp_lib.sh and rename it as mptcp_lib_get_counter(). Use this new
helper instead of get_counter() and get_mib_counter().
Use this helper in test_prio() in userspace_pm.sh too instead of
open-coding.
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