From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C26A3A328D for ; Tue, 22 Oct 2019 11:51:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8A4161BE95; Tue, 22 Oct 2019 11:51:19 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 0BF4749DF for ; Tue, 22 Oct 2019 11:51:17 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Oct 2019 02:51:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,326,1566889200"; d="scan'208";a="398964063" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga006.fm.intel.com with ESMTP; 22 Oct 2019 02:51:16 -0700 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 02:51:16 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 22 Oct 2019 02:51:15 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.165]) with mapi id 14.03.0439.000; Tue, 22 Oct 2019 17:51:14 +0800 From: "Tu, Lijuan" To: "Peng, ZhihongX" , "dts@dpdk.org" CC: "Peng, ZhihongX" Thread-Topic: [dts] [PATCH V2] Modify the clv offset code Thread-Index: AQHVh77w8c7XmipN3kei0kDJSFzwyqdma97w Date: Tue, 22 Oct 2019 09:51:13 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB450D9@SHSMSX101.ccr.corp.intel.com> References: <20191021112143.27230-1-zhihongx.peng@intel.com> In-Reply-To: <20191021112143.27230-1-zhihongx.peng@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTBjYTlkYzYtYjVlYy00Mjk1LTliNDYtZmFkZTllYTMwZmE5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiR0ZWaFwvNzBvTUdZYW9BbmNcL1BCbVRkSzJrd3RRZUc4SzdUTTJBYU01c093ZW03QTVYZm4yTzVyTWhcL28zN3phYSJ9 x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V2] Modify the clv offset code 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" I can't understand why is the patch, thanks Columbiaville and Fortville has the same overhead length, so why they are i= n different catalogs. #define ICE_ETH_OVERHEAD \ (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + ICE_VLAN_TAG_SIZE * 2) #define I40E_ETH_OVERHEAD \ (RTE_ETHER_HDR_LEN + RTE_ETHER_CRC_LEN + I40E_VLAN_TAG_SIZE * 2) > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Peng Zhihong > Sent: Monday, October 21, 2019 7:22 PM > To: dts@dpdk.org > Cc: Peng, ZhihongX > Subject: [dts] [PATCH V2] Modify the clv offset code >=20 > Signed-off-by: Peng Zhihong > --- > tests/TestSuite_userspace_ethtool.py | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) >=20 > diff --git a/tests/TestSuite_userspace_ethtool.py > b/tests/TestSuite_userspace_ethtool.py > index 116fd3a..94918e9 100644 > --- a/tests/TestSuite_userspace_ethtool.py > +++ b/tests/TestSuite_userspace_ethtool.py > @@ -546,9 +546,16 @@ class TestUserspaceEthtool(TestCase, > IxiaPacketGenerator): > mtus =3D [1519, 2048] > mtu_threshold =3D 2022 > offset =3D 0 > + > if self.nic in ['powerville', 'springville']: > mtu_threshold =3D 2026 > offset =3D 4 > + elif self.nic in ['columbiaville_25g', 'columbiaville_100g']: > + #ICE_ETH_OVERHEAD is 8 > + offset =3D 8 > + else: > + pass > + > for index in range(len(self.ports)): > port =3D self.ports[index] > # change mtu > @@ -561,10 +568,9 @@ class TestUserspaceEthtool(TestCase, > IxiaPacketGenerator): > if mtu > mtu_threshold: > if self.nic in ['powerville', 'springville']: > mtu =3D mtu_threshold > - self.dut.send_expect("stop %s" % index, "EthApp>") > - self.dut.send_expect("mtu %d %d" % (index, mtu), "Et= hApp>") > - self.dut.send_expect("open %s" % index, "EthApp>") > + self.dut.send_expect("stop %s" % index, "EthApp>") > self.dut.send_expect("mtu %d %d" % (index, mtu), "EthApp= >") > + self.dut.send_expect("open %s" % index, "EthApp>") > time.sleep(5) > ori_rx_pkts, _ =3D self.strip_portstats(index) > pkt_size =3D mtu + HEADER_SIZE['eth'] + offset > -- > 2.17.1