OSDN Git Service

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)
commit3a70a6451551c974b1e9237c9ceb04777c83a12e
tree7c42a283f033080781114efe1a61419b4bd04e67
parentc01037293c4b7f145148f4ceb0e2d99ccd1bc2d2
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