From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id C7D3C1B35C for ; Sun, 11 Feb 2018 03:52:19 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Feb 2018 18:52:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,493,1511856000"; d="scan'208";a="29818837" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 10 Feb 2018 18:52:18 -0800 From: "han,yingya" To: dts@dpdk.org Cc: "han,yingya" Date: Sun, 11 Feb 2018 10:53:31 +0800 Message-Id: <1518317611-52200-1-git-send-email-yingyax.han@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1]tests/ipgre stop port before set csum 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: Sun, 11 Feb 2018 02:52:21 -0000 Need to stop port before configure CSUM offloading. Refer to dpdk commit: 597f9fafe Signed-off-by: han,yingya --- 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