Loading
selftests: mptcp: add mptcp_lib_verify_listener_events
mainline inclusion from mainline-v6.9-rc1 commit 7f0782ca1ce9f5dcb163c3f3a626f8b23fa85b3d category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9VYQ9 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7f0782ca1ce9f5dcb163c3f3a626f8b23fa85b3d -------------------------------- To avoid duplicated code in different MPTCP selftests, we can add and use helpers defined in mptcp_lib.sh. The helper verify_listener_events() is defined both in mptcp_join.sh and userspace_pm.sh, export it into mptcp_lib.sh and rename it with mptcp_lib_ prefix. Use this new helper in both scripts. 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/20240308-upstream-net-next-20240308-selftests-mptcp-unification-v1-13-4f42c347b653@kernel.org Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Signed-off-by:
Geliang Tang <tanggeliang@kylinos.cn> Reviewed-by:
Jackie Liu <liuyun01@kylinos.cn> Signed-off-by:
Geliang Tang <tanggeliang@kylinos.cn>