diff options
author | Amit Cohen <amitc@mellanox.com> | 2020-06-29 22:46:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 02:45:02 +0200 |
commit | 0433045c27bf9ae71e1c0300c278582407dd0e0b (patch) | |
tree | c5b467e2886031ce654206457be1102fab37edac /tools/testing/selftests/net/forwarding | |
parent | selftests: forwarding: ethtool: Move different_speeds_get() to ethtool_lib (diff) | |
download | linux-0433045c27bf9ae71e1c0300c278582407dd0e0b.tar.xz linux-0433045c27bf9ae71e1c0300c278582407dd0e0b.zip |
selftests: forwarding: forwarding.config.sample: Add port with no cable connected
Add NETIF_NO_CABLE port to tests topology.
The port can also be declared as an environment variable and tests can be
run like that:
NETIF_NO_CABLE=eth9 ./test.sh eth{1..8}
The NETIF_NO_CABLE port will be used by ethtool_extended_state test.
Signed-off-by: Amit Cohen <amitc@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/forwarding')
-rw-r--r-- | tools/testing/selftests/net/forwarding/forwarding.config.sample | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/forwarding/forwarding.config.sample b/tools/testing/selftests/net/forwarding/forwarding.config.sample index e2adb533c8fc..b802c14d2950 100644 --- a/tools/testing/selftests/net/forwarding/forwarding.config.sample +++ b/tools/testing/selftests/net/forwarding/forwarding.config.sample @@ -14,6 +14,9 @@ NETIFS[p6]=veth5 NETIFS[p7]=veth6 NETIFS[p8]=veth7 +# Port that does not have a cable connected. +NETIF_NO_CABLE=eth8 + ############################################################################## # Defines |