]> git.proxmox.com Git - mirror_ubuntu-kernels.git/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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 May 2024 08:48:41 +0000 (09:48 +0100)
commit83e93942796db58652288f0391ac00072401816f
tree461e365209faa14d08419c2a56e00478de914e96
parentfd76e5ccc48f9f54eb44909dd7c0b924005f1582
selftests/net/lib: no need to record ns name if it already exist

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>
tools/testing/selftests/net/lib.sh