[dts] [PATCH V1] tests/shutdown_api: modify the command to adapt to the changes in ethtool
Song Jiale
songx.jiale at intel.com
Mon Jan 16 16:00:02 CET 2023
The ethtool after version 5.4 does not support changing the network card speed
when automatic negotiation is turned off. therefore, rm 'autoneg off' in script.
Signed-off-by: Song Jiale <songx.jiale at intel.com>
---
tests/TestSuite_shutdown_api.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index fc81c46a..9cd2b273 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -320,11 +320,6 @@ class TestShutdownApi(TestCase):
self.dut.destroy_sriov_vfs_by_port(self.used_dut_port)
self.used_dut_port = None
- for port in self.ports:
- self.dut.send_expect(
- "ethtool -s %s autoneg on " % self.dut.ports_info[port]["intf"], "#"
- )
-
self.bind_nic_driver(self.dut_ports, driver=self.used_driver or self.drivername)
if not self.vm_env_done:
@@ -629,7 +624,7 @@ class TestShutdownApi(TestCase):
for port in self.ports:
if len(configs) != 1:
self.dut.send_expect(
- "ethtool -s %s autoneg off speed %s duplex %s"
+ "ethtool -s %s speed %s duplex %s"
% (
self.dut.ports_info[port]["intf"],
config[0],
--
2.25.1
More information about the dts
mailing list