From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id BD606A09FF; Thu, 7 Jan 2021 06:16:54 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D1FB140E80; Thu, 7 Jan 2021 06:16:54 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 843BF140E7D for ; Thu, 7 Jan 2021 06:16:53 +0100 (CET) IronPort-SDR: lIpK6UTKCjFALtcum8kYRa6zRBRdIgbHafnUR8TCDpkdHI2GLxy/pCFNUlKikqj27URMWlM0nP OfUs+3G/aJWA== X-IronPort-AV: E=McAfee;i="6000,8403,9856"; a="262146791" X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="262146791" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2021 21:16:52 -0800 IronPort-SDR: 6uUaEBWkbtO8P+WjI7ZICybZ5BuDPc5N8h6b2g+HxJzl+Pv2ZdH+H26ssGJGxVmUgCqY2Cd5br L7Up6OSiMB2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="567645350" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 06 Jan 2021 21:16:52 -0800 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 6 Jan 2021 21:16:51 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX606.ccr.corp.intel.com (10.109.6.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Thu, 7 Jan 2021 13:16:50 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.1713.004; Thu, 7 Jan 2021 13:16:50 +0800 From: "Tu, Lijuan" To: "Xie, WeiX" , "dts@dpdk.org" CC: "Xie, WeiX" Thread-Topic: [dts] [PATCH V1 1/2] tests/TestSuite_vf_jumboframe:Rx packet size should be equal to packet size Thread-Index: AQHW4/hCdoVciacp0EqadRHhX76/86obn8Iw Date: Thu, 7 Jan 2021 05:16:49 +0000 Message-ID: References: <20210106065233.5401-1-weix.xie@intel.com> <20210106065233.5401-2-weix.xie@intel.com> In-Reply-To: <20210106065233.5401-2-weix.xie@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 1/2] tests/TestSuite_vf_jumboframe:Rx packet size should be equal to packet size X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" > DTS framework has switched i40evf to iavf, so align with it. > After testing, found that: > when send a packet which length is 1513 bytes. > for iavf driver; the statistic from "show port stats 0" is: RX-bytes: 151= 3 for > i40evf driver; the statistic from "show port stats 0" is: RX-bytes: 1517 >=20 > Signed-off-by: Xie wei > --- > tests/TestSuite_vf_jumboframe.py | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_vf_jumboframe.py > b/tests/TestSuite_vf_jumboframe.py > index 6da2c5e5..75480f1f 100644 > --- a/tests/TestSuite_vf_jumboframe.py > +++ b/tests/TestSuite_vf_jumboframe.py > @@ -219,10 +219,8 @@ class TestVfJumboFrame(TestCase): > if received: > self.verify((rx_pkts =3D=3D 1) and (tx_pkts =3D=3D 1), "Pack= et forward assert > error") >=20 > - if self.kdriver =3D=3D "ixgbe" or self.kdriver =3D=3D 'ice': > + if self.kdriver in ["ixgbe", "ice", "i40e"]: > self.verify((rx_bytes + 4) =3D=3D pktsize, "Rx packet si= ze should be > packet size - 4") > - else: > - self.verify(rx_bytes =3D=3D pktsize, "Rx packet size sho= uld be equal to > packet size") If not matched the if condition, miss verification, so there is a gap, than= ks. >=20 > if self.kdriver =3D=3D "igb": > self.verify(tx_bytes =3D=3D pktsize, "Tx packet size sho= uld be packet > size") > -- > 2.17.1