]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
selftests: forwarding: Add tests for ethtool extended state
authorAmit Cohen <amitc@mellanox.com>
Mon, 29 Jun 2020 20:46:21 +0000 (23:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:45:02 +0000 (17:45 -0700)
commit7d10bcce98cd44ea7c040380397114e0ac94422f
treee26db0fbcc5400167d5b807154468e27f513215a
parent0433045c27bf9ae71e1c0300c278582407dd0e0b
selftests: forwarding: Add tests for ethtool extended state

Add tests to check ethtool report about extended state.
The tests configure several states and verify that the correct extended
state is reported by ethtool.

Check extended state with substate (Autoneg) and extended state without
substate (No cable).

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_extended_state.sh [new file with mode: 0755]