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 254728E67 for ; Wed, 11 Nov 2015 15:45:47 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 11 Nov 2015 06:45:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,276,1444719600"; d="scan'208";a="847934523" Received: from stv-crb-56.sh.intel.com (HELO [10.239.128.116]) ([10.239.128.116]) by orsmga002.jf.intel.com with ESMTP; 11 Nov 2015 06:45:25 -0800 Message-ID: <564354E2.7080009@intel.com> Date: Wed, 11 Nov 2015 22:46:58 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: yongjie , dts@dpdk.org References: <1447232672-9002-1-git-send-email-yongjiex.gu@intel.com> In-Reply-To: <1447232672-9002-1-git-send-email-yongjiex.gu@intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [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 14:45:48 -0000 Applied. Thanks. On 11/11/2015 05:04 PM, yongjie wrote: > 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: