[dts] [PATCH V1] tests/shutdown_api: add the sagepond speed/duplex status in change_linkspeed

wenjieli wenjiex.a.li at intel.com
Thu Oct 25 08:04:30 CEST 2018


It is NOT a DPDK issue.
With sagepond nic on DUT, after change DUT nic speed/duplex by linux commands
"ethtool -s ethX speed SPEED duplex full", the tester nic speed and duplex 
will change to "Unknown" and disconnec from its peer port. 
"Unknown" is expected behavior, and will not check packet forwarding.

Signed-off-by: wenjieli <wenjiex.a.li at intel.com>
---
 tests/TestSuite_shutdown_api.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index 52a8fbf..035d118 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -314,6 +314,8 @@ class TestShutdownApi(TestCase):
             self.dut.send_expect("port start all", "testpmd> ", 100)
             time.sleep(5)  # sleep few seconds for link stable
 
+            if self.nic in ["sagepond"]:
+                config = ['Unknown!', 'Unknown! (255)']
             for port in self.ports:
                 out = self.tester.send_expect(
                     "ethtool %s" % self.tester.get_interface(self.tester.get_local_port(port)), "# ")
@@ -322,7 +324,8 @@ class TestShutdownApi(TestCase):
                 self.verify("Duplex: %s" % config[1] in out,
                             "Wrong link type reported by the self.tester.")
             self.dut.send_expect("start", "testpmd> ")
-            self.check_forwarding()
+            if self.nic not in ["sagepond"]:
+                self.check_forwarding()
             self.dut.send_expect("stop", "testpmd> ")
 
     def test_enable_disablejumbo(self):
-- 
2.17.2



More information about the dts mailing list