selftests: forwarding: ethtool: Move different_speeds_get() to ethtool_lib
authorAmit Cohen <amitc@mellanox.com>
Mon, 29 Jun 2020 20:46:19 +0000 (23:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:45:02 +0000 (17:45 -0700)
commitdd9e67ff8086adeaf257a17eee9ee73dcb2c1c13
tree235a5226afacd69ffe5f6d2a8b4a01a87b3309a8
parent60f30cd6c24afc66c3e227af1363a40c07ff0307
selftests: forwarding: ethtool: Move different_speeds_get() to ethtool_lib

Currently different_speeds_get() is used only by ethtool.sh tests.
The function can be useful for another tests that check ethtool
configurations.

Move the function to ethtool_lib in order to allow other tests to use
it.

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>
tools/testing/selftests/net/forwarding/ethtool.sh
tools/testing/selftests/net/forwarding/ethtool_lib.sh