]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: forwarding: Allow creation of interfaces without a config file
authorIdo Schimmel <idosch@mellanox.com>
Sun, 11 Mar 2018 07:57:25 +0000 (09:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 02:44:24 +0000 (22:44 -0400)
commit7970dabb4e1f5344fb66193dcd4b64896612f7ce
tree59c9e93e7aba39e4a9ae2377dba78c65fe8f90f7
parente12ae13eac231a44f718d50ab0214313fcd0139e
selftests: forwarding: Allow creation of interfaces without a config file

Some users want to be able to run the tests without a configuration file
which is useful when one needs to test both virtual and physical
interfaces on the same machine.

Move the defines that set the type of interface to create and whether to
create it away from the optional configuration file to the library like
the rest of the defines.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/forwarding/forwarding.config.sample
tools/testing/selftests/net/forwarding/lib.sh