test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/shutdown_api: add the sagepond speed/duplex status in change_linkspeed
@ 2018-10-25  6:04 wenjieli
  0 siblings, 0 replies; only message in thread
From: wenjieli @ 2018-10-25  6:04 UTC (permalink / raw)
  To: dts; +Cc: wenjieli

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@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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-25  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-25  6:04 [dts] [PATCH V1] tests/shutdown_api: add the sagepond speed/duplex status in change_linkspeed wenjieli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).