test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V4] stop port before csum set
@ 2018-01-29 10:14 xu,gang
  2018-01-30  2:13 ` Liu, Yong
  2018-01-30 11:06 ` Liu, Yong
  0 siblings, 2 replies; 5+ messages in thread
From: xu,gang @ 2018-01-29 10:14 UTC (permalink / raw)
  To: dts; +Cc: xu,gang

Need to stop port before configure csum.
refer dpdk commit : 597f9fafe13b

Signed-off-by: xu,gang <gangx.xu@intel.com>
---
 tests/TestSuite_checksum_offload.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/TestSuite_checksum_offload.py b/tests/TestSuite_checksum_offload.py
index 5f5547f..4183ead 100644
--- a/tests/TestSuite_checksum_offload.py
+++ b/tests/TestSuite_checksum_offload.py
@@ -72,16 +72,21 @@ class TestChecksumOffload(TestCase):
         self.dut.send_expect("set fwd csum", "testpmd>")
 
     def checksum_enablehw(self, port):
+            self.dut.send_expect("port stop all", "testpmd>")
             self.dut.send_expect("csum set ip hw %d" % port, "testpmd>")
             self.dut.send_expect("csum set udp hw %d" % port, "testpmd>")
             self.dut.send_expect("csum set tcp hw %d" % port, "testpmd>")
             self.dut.send_expect("csum set sctp hw %d" % port, "testpmd>")
+            self.dut.send_expect("port start all", "testpmd>")
 
     def checksum_enablesw(self, port):
+            self.dut.send_expect("port stop all", "testpmd>")
             self.dut.send_expect("csum set ip sw %d" % port, "testpmd>")
             self.dut.send_expect("csum set udp sw %d" % port, "testpmd>")
             self.dut.send_expect("csum set tcp sw %d" % port, "testpmd>")
             self.dut.send_expect("csum set sctp sw %d" % port, "testpmd>")
+            self.dut.send_expect("port start all", "testpmd>")
+
 
     def get_chksum_values(self, packets_expected):
         """
-- 
1.9.3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-30  3:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-29 10:14 [dts] [PATCH V4] stop port before csum set xu,gang
2018-01-30  2:13 ` Liu, Yong
2018-01-30  2:27   ` Tu, LijuanX A
2018-01-30  2:52     ` Liu, Yong
2018-01-30 11:06 ` Liu, Yong

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).