diff options
author | Geliang Tang <tanggeliang@kylinos.cn> | 2024-03-06 10:42:55 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-07 21:06:52 -0800 |
commit | 35bc143a8514ee72b2e9d6b8b385468608b93a53 (patch) | |
tree | 4670958ffefea3e6c3a7b11a8983ec6804bd6eb5 /lib/dynamic_queue_limits.c | |
parent | df8d3ba55b4fa1d6aed8449971ee50757cb0732f (diff) | |
download | linux-35bc143a8514ee72b2e9d6b8b385468608b93a53.tar.gz linux-35bc143a8514ee72b2e9d6b8b385468608b93a53.tar.bz2 linux-35bc143a8514ee72b2e9d6b8b385468608b93a53.zip |
selftests: mptcp: add mptcp_lib_events helper
To avoid duplicated code in different MPTCP selftests, we can add and
use helpers defined in mptcp_lib.sh.
This patch unifies "pm_nl_ctl events" related code in userspace_pm.sh
and mptcp_join.sh into a helper mptcp_lib_events(). Define it in
mptcp_lib.sh and use it in both scripts.
Note that mptcp_lib_kill_wait is now call before starting 'events' for
mptcp_join.sh as well, but that's fine: each test is started from a new
netns, so there will not be any existing pid there, and nothing is done
when mptcp_lib_kill_wait is called with 0.
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240306-upstream-net-next-20240304-selftests-mptcp-shared-code-shellcheck-v2-6-bc79e6e5e6a0@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions