]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Move device validation in nettest
authorDavid Ahern <dsahern@gmail.com>
Thu, 14 Jan 2021 03:09:37 +0000 (20:09 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 00:26:47 +0000 (16:26 -0800)
commitff79665d95f49a0ef0813d8a20fca57d0d111a84
tree7c42a283f033080781114efe1a61419b4bd04e67
parentd19b50117223ecacafe2467cc45f3b36dd7d7df0
selftests: Move device validation in nettest

Later patch adds support for switching network namespaces before
running client, server or both. Device validations need to be
done after the network namespace switch, so add a helper to do it
and invoke in server and client code versus inline with argument
parsing. Move related argument checks as well.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/nettest.c