From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 46B17559C for ; Wed, 11 Nov 2015 09:43:40 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 11 Nov 2015 00:43:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,274,1444719600"; d="scan'208";a="833988896" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga001.fm.intel.com with ESMTP; 11 Nov 2015 00:43:31 -0800 From: yongjie To: dts@dpdk.org Date: Wed, 11 Nov 2015 16:39:00 +0800 Message-Id: <1447231140-8639-1-git-send-email-yongjiex.gu@intel.com> X-Mailer: git-send-email 1.9.3 Cc: root Subject: [dts] [PATCH] fix shutdown api 1G nics bug 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: Wed, 11 Nov 2015 08:43:40 -0000 From: root Signed-off-by: root --- tests/TestSuite_shutdown_api.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index d672d50..2202ae1 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -147,8 +147,7 @@ class TestShutdownApi(TestCase): rx_bytes_exp -= 4 tx_bytes_exp -= 4 elif self.nic in ["fortville_eagle", "fortville_spirit", - "fortville_spirit_single", "bartonhills", - "powerville", "springville", "hartwell"]: + "fortville_spirit_single", "bartonhills"]: # some NIC will always strip tx crc tx_bytes_exp -= 4 if vlan is True: @@ -156,7 +155,7 @@ class TestShutdownApi(TestCase): tx_bytes_exp -= 4 else: # some NIC will always include tx crc - if crcStrip is True: + if crcStrip is True and self.nic not in ["springville", "powerville"]: rx_bytes_exp -= 4 if vlan is True: # vlan strip default is on @@ -354,7 +353,7 @@ class TestShutdownApi(TestCase): self.dut.send_expect("port start all", "testpmd> ", 100) self.dut.send_expect("start", "testpmd> ") - if self.nic in ['niantic']: + if self.nic in ['niantic', 'twinpond', 'kawela_4', 'ironpond', 'springfountain', 'springville', 'powerville']: # nantic vlan length will not be calculated vlan_jumbo_size = jumbo_size + 4 else: -- 1.8.5.2