]> git.hungrycats.org Git - linux/commit
selftests/net/lib: no need to record ns name if it already exist
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 14 May 2024 02:33:59 +0000 (10:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:50 +0000 (09:49 +0200)
commitf4992a8cb283cc25c868c230a84256cbc7e04ef2
treee8cbe06c4788bc6d5a6864996458b226dc68f566
parentb2a5efd0fc19645bca1a0963e384cabd700f11f3
selftests/net/lib: no need to record ns name if it already exist

[ Upstream commit 83e93942796db58652288f0391ac00072401816f ]

There is no need to add the name to ns_list again if the netns already
recoreded.

Fixes: 25ae948b4478 ("selftests/net: add lib.sh")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/lib.sh