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 9DE9CA04F9; Fri, 10 Jan 2020 08:29:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8F74F1E8B1; Fri, 10 Jan 2020 08:29:51 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 1FED21E553 for ; Fri, 10 Jan 2020 08:29:49 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jan 2020 23:29:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,415,1571727600"; d="scan'208";a="218587966" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga008.fm.intel.com with ESMTP; 09 Jan 2020 23:29:49 -0800 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 9 Jan 2020 23:29:49 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.30]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.210]) with mapi id 14.03.0439.000; Fri, 10 Jan 2020 15:29:48 +0800 From: "Tu, Lijuan" To: "usurekha@marvell.com" , "dts@dpdk.org" CC: "pvukkisala@marvell.com" Thread-Topic: [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet length for cavium_a063 Thread-Index: AQHVx3RDhNCv6Xi6rEy4014jZ0DYGqfjgI2Q Date: Fri, 10 Jan 2020 07:29:47 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BBA54E0@SHSMSX101.ccr.corp.intel.com> References: <1578632761-5151-1-git-send-email-usurekha@marvell.com> In-Reply-To: <1578632761-5151-1-git-send-email-usurekha@marvell.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-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] TestSuite_userspace_ethtool.py:Modified packet length for cavium_a063 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" applied > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of > usurekha@marvell.com > Sent: Friday, January 10, 2020 1:06 PM > To: dts@dpdk.org > Cc: pvukkisala@marvell.com; usurekha > Subject: [dts] [PATCH] TestSuite_userspace_ethtool.py:Modified packet > length for cavium_a063 >=20 > From: usurekha >=20 > Modified to required packet length for cavium_a063 >=20 > Signed-off-by: usurekha > --- > tests/TestSuite_userspace_ethtool.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_userspace_ethtool.py > b/tests/TestSuite_userspace_ethtool.py > index 248d1d1..53e37d2 100644 > --- a/tests/TestSuite_userspace_ethtool.py > +++ b/tests/TestSuite_userspace_ethtool.py > @@ -594,7 +594,10 @@ class TestUserspaceEthtool(TestCase, > IxiaPacketGenerator): > pkt.send_pkt(self.tester, tx_port=3Dintf, count=3D4) > rx_pkts, _ =3D self.strip_portstats(index) > self.verify(rx_pkts =3D=3D ori_rx_pkts + 4, "Packet matc= h mtu not > forwarded as expected") > - pkt =3D Packet(pkt_type=3D'UDP', pkt_len=3Dmtu + 1 + HEA= DER_SIZE['eth'] > + offset) > + if (self.nic in ["cavium_a063","cavium_a064"]): > + pkt =3D Packet(pkt_type=3D'UDP', pkt_len=3Dmtu + 9 + > HEADER_SIZE['eth'] + offset) > + else: > + pkt =3D Packet(pkt_type=3D'UDP', pkt_len=3Dmtu + 1 + > HEADER_SIZE['eth'] + offset) > pkt.send_pkt(self.tester, tx_port=3Dintf, count=3D4) > rx_pkts_over, _ =3D self.strip_portstats(index) > self.verify(rx_pkts =3D=3D rx_pkts_over, "Packet over mt= u should not be > forwarded") > -- > 2.7.4