]> 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)
commitbdb00a4573aeb267b0f699c0c726896b17391466
tree59c9e93e7aba39e4a9ae2377dba78c65fe8f90f7
parenteba590bab28934efa0fe44a850b3c381f4eb2cd2
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