]> git.itanic.dy.fi Git - linux-stable/commit
selftests/net: add variable NS_LIST for lib.sh
authorHangbin Liu <liuhangbin@gmail.com>
Wed, 13 Dec 2023 06:08:44 +0000 (14:08 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Dec 2023 02:38:34 +0000 (18:38 -0800)
commitb6925b4ed57cccf42ca0fb46c7446f0859e7ad4b
tree26b9c50ebae1f81da59f12f28a090c501f870bd8
parentfcb29877f7e18a1f27d7d6871f5f7bb6aaade575
selftests/net: add variable NS_LIST for lib.sh

Add a global variable NS_LIST to store all the namespaces that setup_ns
created, so the caller could call cleanup_all_ns() instead of remember
all the netns names when using cleanup_ns().

Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Link: https://lore.kernel.org/r/20231213060856.4030084-2-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/lib.sh