From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4E5C85A97 for ; Wed, 11 Nov 2015 09:49:38 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP; 11 Nov 2015 00:49:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,274,1444719600"; d="scan'208";a="682815405" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga003.jf.intel.com with ESMTP; 11 Nov 2015 00:49:36 -0800 From: yongjie To: dts@dpdk.org Date: Wed, 11 Nov 2015 16:45:06 +0800 Message-Id: <1447231506-8805-1-git-send-email-yongjiex.gu@intel.com> X-Mailer: git-send-email 1.9.3 Cc: Gu yongjie Subject: [dts] [PATCH] fix shutdown api bug on 1G nics 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:49:38 -0000 From: Gu yongjie Signed-off-by: Gu yongjie --- tests/TestSuite_shutdown_api.py | 7 +++---- 1 files 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.7.4.4