]> 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)
commit61e6fcd2bde5c724b2e8c5e1d7ded3e8958a2c71
tree7c42a283f033080781114efe1a61419b4bd04e67
parent26070c05b7b8099780e9ea9bfcba4cddb1d74717
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