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 2F0E9A0613 for ; Wed, 28 Aug 2019 12:26:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D045E1C128; Wed, 28 Aug 2019 12:26:39 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 4B77D1C121 for ; Wed, 28 Aug 2019 12:26:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Aug 2019 03:26:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,440,1559545200"; d="scan'208";a="264605971" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga001.jf.intel.com with ESMTP; 28 Aug 2019 03:26:37 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 28 Aug 2019 03:26:36 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 28 Aug 2019 03:26:36 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.80]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.112]) with mapi id 14.03.0439.000; Wed, 28 Aug 2019 18:26:34 +0800 From: "Tu, Lijuan" To: "nareddy@marvell.com" , "dts@dpdk.org" CC: "fmasood@marvell.com" , "avijay@marvell.com" Thread-Topic: [dts] [PATCH] TestSuite_l2fwd.py: Corrected dest mac address with correct mac Thread-Index: AQHVVkEB/wRYVCUpFEWUlHh4hLpz9acQaZrA Date: Wed, 28 Aug 2019 10:26:34 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB06BB1@SHSMSX101.ccr.corp.intel.com> References: <1566186491-28189-1-git-send-email-nareddy@marvell.com> In-Reply-To: <1566186491-28189-1-git-send-email-nareddy@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-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjI5MGNhODItNzIwYS00OWFkLWI3YzEtMDk2ZmY5ZmNiY2Y2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVURmMWRSNG1EUFBjR3VDcFJjOEVRdWZ6UUdtZGJHckFEeEp3OWNMdkJRVmxPdlVTbk1NWHl3d0IrdGx4VWZGdCJ9 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_l2fwd.py: Corrected dest mac address with correct mac 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, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of > nareddy@marvell.com > Sent: Monday, August 19, 2019 11:48 AM > To: dts@dpdk.org > Cc: fmasood@marvell.com; avijay@marvell.com; Praneeth Reddy > > Subject: [dts] [PATCH] TestSuite_l2fwd.py: Corrected dest mac address wit= h > correct mac >=20 > From: Praneeth Reddy >=20 > Corrected dest mac with DUT ports mac address. >=20 > Signed-off-by: Praneeth Reddy > --- > tests/TestSuite_l2fwd.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py index > b064afd..e2c4118 100644 > --- a/tests/TestSuite_l2fwd.py > +++ b/tests/TestSuite_l2fwd.py > @@ -152,7 +152,8 @@ class TestL2fwd(TestCase): > rx_port =3D self.tester.get_local_port(self.dut_ports[1]) > tgen_input.append((tx_port, rx_port)) >=20 > - result =3D self.tester.check_random_pkts(tgen_input, allow_m= iss=3DFalse) > + self.dst_mac =3D self.dut.get_mac_address(self.dut_ports[0]) > + result =3D self.tester.check_random_pkts(tgen_input, > + allow_miss=3DFalse, params =3D [('ether', {'dst': '%s'%(self.dst_mac)})= ]) > self.verify(result !=3D False, "Packet integrity check faile= d") >=20 > self.quit_l2fwd() > -- > 1.8.3.1