test suite reviews and discussions
 help / color / mirror / Atom feed
From: "xu,gang" <gangx.xu@intel.com>
To: dts@dpdk.org
Cc: "xu,gang" <gangx.xu@intel.com>
Subject: [dts] [PATCH V4] stop port before csum set
Date: Mon, 29 Jan 2018 18:14:32 +0800	[thread overview]
Message-ID: <1517220872-34024-1-git-send-email-gangx.xu@intel.com> (raw)

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

             reply	other threads:[~2018-01-29 10:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-29 10:14 xu,gang [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1517220872-34024-1-git-send-email-gangx.xu@intel.com \
    --to=gangx.xu@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).