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 544904C76 for ; Thu, 17 May 2018 07:13:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 May 2018 22:13:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,390,1520924400"; d="scan'208";a="59338800" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 16 May 2018 22:13:48 -0700 From: "han,yingya" To: dts@dpdk.org Cc: "han,yingya" Date: Thu, 17 May 2018 13:15:03 +0800 Message-Id: <1526534103-15323-1-git-send-email-yingyax.han@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1]tests/shutdown_api: fix the CRC stripping enabled 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: Thu, 17 May 2018 05:13:51 -0000 The CRC strip defaults to enable and the output of CRC stripping changed in 18.05. 'Rx offloads=0x1000' is defined as DEV_RX_OFFLOAD_CRC_STRIP. Signed-off-by: han,yingya --- tests/TestSuite_shutdown_api.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index af0b77d..8b6de18 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -253,8 +253,8 @@ class TestShutdownApi(TestCase): self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("port start all", "testpmd> ", 100) out = self.dut.send_expect("show config rxtx", "testpmd> ") - self.verify("RX queues=2" in out, "RX queues not reconfigured properly") - self.verify("TX queues=2" in out, "TX queues not reconfigured properly") + self.verify("RX queue number: 2" in out, "RX queues not reconfigured properly") + self.verify("Tx queue number: 2" in out, "TX queues not reconfigured properly") self.dut.send_expect("start", "testpmd> ") self.check_forwarding() self.dut.send_expect("quit", "# ", 30) @@ -263,7 +263,10 @@ class TestShutdownApi(TestCase): """ Reconfigure All Ports With The Same Configurations (CRC) """ - self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop" % utils.create_mask(self.ports), socket=self.ports_socket) + self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop --disable-crc-strip" % utils.create_mask(self.ports), socket=self.ports_socket) + out = self.dut.send_expect("show config rxtx", "testpmd> ") + self.verify( + "Rx offloads=0x0" in out, "CRC stripping not disabled properly") self.dut.send_expect("port stop all", "testpmd> ", 100) self.dut.send_expect("port config all crc-strip on", "testpmd> ") @@ -271,7 +274,7 @@ class TestShutdownApi(TestCase): self.dut.send_expect("port start all", "testpmd> ", 100) out = self.dut.send_expect("show config rxtx", "testpmd> ") self.verify( - "CRC stripping enabled" in out, "CRC stripping not enabled properly") + "Rx offloads=0x1000" in out, "CRC stripping not enabled properly") self.dut.send_expect("start", "testpmd> ") self.check_forwarding() -- 1.9.3