From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id F03F51B426 for ; Thu, 2 Aug 2018 04:17:12 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2018 19:17:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,434,1526367600"; d="scan'208";a="77571101" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 01 Aug 2018 19:17:11 -0700 From: "han,yingya" To: dts@dpdk.org Cc: "han,yingya" Date: Thu, 2 Aug 2018 10:18:23 +0800 Message-Id: <1533176303-109061-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-strip 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, 02 Aug 2018 02:17:13 -0000 The "disable-crc-strip" parameter was modified in dpdk 18.08. The expected value for RX_offloads when crc-strip is off is 0x10000 and when crc-strip is on is 0x1000. More details can refer to dpdk commit e557ebc0 and DPDK-5829. Signed-off-by: han,yingya --- tests/TestSuite_shutdown_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index d00c3fb..3cb0eff 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -266,7 +266,7 @@ class TestShutdownApi(TestCase): 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") + "Rx offloads=0x10000" 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> ") -- 1.9.3