From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 294A21B720 for ; Fri, 9 Feb 2018 09:36:01 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2018 00:35:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,482,1511856000"; d="scan'208";a="18554431" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 09 Feb 2018 00:35:58 -0800 From: "xu,gang" To: dts@dpdk.org Cc: "xu,gang" Date: Fri, 9 Feb 2018 16:37:12 +0800 Message-Id: <1518165432-50984-1-git-send-email-gangx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] fix csum set issue X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Feb 2018 08:36:02 -0000 When we run command "csum set ip/udp/tcp/sctp hw $port_id", need stop port first. And we run command "csum set ip/udp/tcp/sctp sw $port_id", need too Signed-off-by: xu,gang --- tests/TestSuite_nvgre.py | 2 ++ tests/TestSuite_vxlan.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py index d64c3cb..99b8490 100644 --- a/tests/TestSuite_nvgre.py +++ b/tests/TestSuite_nvgre.py @@ -551,12 +551,14 @@ class TestNvgre(TestCase): # enable tx checksum offload self.dut.send_expect("set verbose 1", "testpmd>", 10) self.dut.send_expect("set fwd csum", "testpmd>", 10) + self.dut.send_expect("port stop all", "testpmd>") self.dut.send_expect("csum set ip hw %d" % (self.dut_tx_port), "testpmd>", 10) self.dut.send_expect("csum set udp hw %d" % (self.dut_tx_port), "testpmd>", 10) self.dut.send_expect("csum set tcp hw %d" % (self.dut_tx_port), "testpmd>", 10) self.dut.send_expect("csum set sctp hw %d" % (self.dut_tx_port), "testpmd>", 10) self.dut.send_expect("csum set outer-ip hw %d" % (self.dut_tx_port), "testpmd>", 10) self.dut.send_expect("csum parse_tunnel on %d" % (self.dut_tx_port), "testpmd>", 10) + self.dut.send_expect("port start all", "testpmd>") # log the nvgre format arg_str = "" diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 2e971d1..17a34d4 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -1142,14 +1142,18 @@ class TestVxlan(TestCase, IxiaPacketGenerator): "testpmd>", 10) def csum_set_type(self, proto, port): + self.dut.send_expect("port stop all", "testpmd>") out = self.dut.send_expect("csum set %s hw %d" % (proto, port), "testpmd>", 10) + self.dut.send_expect("port start all", "testpmd>") self.verify("Bad arguments" not in out, "Failed to set vxlan csum") self.verify("error" not in out, "Failed to set vxlan csum") def csum_set_sw(self, proto, port): + self.dut.send_expect("port stop all", "testpmd>") out = self.dut.send_expect("csum set %s sw %d" % (proto, port), "testpmd>", 10) + self.dut.send_expect("port start all", "testpmd>") self.verify("Bad arguments" not in out, "Failed to set vxlan csum") self.verify("error" not in out, "Failed to set vxlan csum") -- 1.9.3