test suite reviews and discussions
 help / color / mirror / Atom feed
From: "han,yingya" <yingyax.han@intel.com>
To: dts@dpdk.org
Cc: "han,yingya" <yingyax.han@intel.com>
Subject: [dts] [PATCH V1]tests/ipgre stop port before set csum
Date: Sun, 11 Feb 2018 10:53:31 +0800	[thread overview]
Message-ID: <1518317611-52200-1-git-send-email-yingyax.han@intel.com> (raw)

Need to stop port before configure CSUM offloading.
Refer to dpdk commit: 597f9fafe
Signed-off-by: han,yingya <yingyax.han@intel.com>
---
 tests/TestSuite_ipgre.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/TestSuite_ipgre.py b/tests/TestSuite_ipgre.py
index a770b8b..2dccb9c 100644
--- a/tests/TestSuite_ipgre.py
+++ b/tests/TestSuite_ipgre.py
@@ -311,12 +311,15 @@ class TestIpgre(TestCase):
         self.dut.send_expect(testpmd_cmd, "testpmd>", 20)
         self.dut.send_expect("set verbose 1", "testpmd>")
         self.dut.send_expect("set fwd csum", "testpmd>")
+        self.dut.send_expect("stop", "testpmd>")
+        self.dut.send_expect("port stop all", "testpmd>")
         self.dut.send_expect("csum set ip hw 0", "testpmd>")
         self.dut.send_expect("csum set udp hw 0", "testpmd>")
         self.dut.send_expect("csum set sctp hw 0", "testpmd>")
         self.dut.send_expect("csum set outer-ip hw 0", "testpmd>")
         self.dut.send_expect("csum set tcp hw 0", "testpmd>")
         self.dut.send_expect("csum parse_tunnel on 0", "testpmd>")
+        self.dut.send_expect("port start all", "testpmd>")
         self.dut.send_expect("start", "testpmd>")
 
         # Send packet with wrong outer IP checksum and check forwarded packet IP checksum is correct
-- 
1.9.3

             reply	other threads:[~2018-02-11  2:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-11  2:53 han,yingya [this message]
2018-03-08 10:43 ` 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=1518317611-52200-1-git-send-email-yingyax.han@intel.com \
    --to=yingyax.han@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).