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)
commit59be45c375e6decce4216dc85fcc8ddf46d38c68
tree59c9e93e7aba39e4a9ae2377dba78c65fe8f90f7
parent231b85abaaeef119811a9f036245c94bd5483415
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