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 10DE98D85 for ; Wed, 11 Nov 2015 10:09:07 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 11 Nov 2015 01:09:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,274,1444719600"; d="scan'208";a="682827198" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga003.jf.intel.com with ESMTP; 11 Nov 2015 01:09:06 -0800 From: yongjie To: dts@dpdk.org Date: Wed, 11 Nov 2015 17:04:32 +0800 Message-Id: <1447232672-9002-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 09:09:08 -0000 From: Gu yongjie Signed-off-by: Gu yongjie --- tests/TestSuite_shutdown_api.py | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index d672d50..3800669 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -147,13 +147,16 @@ 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: # vlan strip default is on tx_bytes_exp -= 4 + elif self.nic in ["springville", "powerville"]: + if vlan is True: + # vlan strip default is on + tx_bytes_exp -= 4 else: # some NIC will always include tx crc if crcStrip is True: @@ -354,7 +357,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