From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id CCD2CA0096 for ; Wed, 5 Jun 2019 07:40:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BE7821B94E; Wed, 5 Jun 2019 07:40:01 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 3D06A4D27 for ; Wed, 5 Jun 2019 07:40:00 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 22:39:59 -0700 X-ExtLoop1: 1 Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 04 Jun 2019 22:39:59 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 22:39:59 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 4 Jun 2019 22:39:59 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.10]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.98]) with mapi id 14.03.0415.000; Wed, 5 Jun 2019 13:39:57 +0800 From: "Tu, Lijuan" To: "nareddy@marvell.com" , "dts@dpdk.org" CC: "fmasood@marvell.com" , "avijay@marvell.com" Thread-Topic: [dts] [PATCH] link_flowctrl.py: mac control frame forward is not supported for cavium_a063 Thread-Index: AQHVGqig4RLb0xEpv0GNhGQIBUDZpKaMjOGw Date: Wed, 5 Jun 2019 05:39:57 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BAA1A13@SHSMSX101.ccr.corp.intel.com> References: <1559633923-2122-1-git-send-email-nareddy@marvell.com> In-Reply-To: <1559633923-2122-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.0.600.7 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZTMwOWI0ZjctZWYzZi00MjUwLTg5OGYtNDJjZTY0ZDdiOWZmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiaUJTUmRsSCtcL1o3dE1RZko2ZE55OW5GRWZ2MjMrMjhjVytKa2xDbDF5N2NkZ3VCR1lteEpCNWtUTFExeTdTNEQifQ== 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] link_flowctrl.py: mac control frame forward is not supported 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, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of > nareddy@marvell.com > Sent: Tuesday, June 4, 2019 3:39 PM > To: dts@dpdk.org > Cc: fmasood@marvell.com; avijay@marvell.com; Praneeth Reddy > > Subject: [dts] [PATCH] link_flowctrl.py: mac control frame forward is not > supported for cavium_a063 >=20 > From: Praneeth Reddy >=20 > Removed mac control frame paramater in testpmd for cavium_a063. > Marked pause frame enabling test cases as not applicable for cavium_a063. >=20 > Signed-off-by: Praneeth Reddy > --- > tests/TestSuite_link_flowctrl.py | 34 +++++++++++++++++++++++++--------- > 1 file changed, 25 insertions(+), 9 deletions(-) >=20 > diff --git a/tests/TestSuite_link_flowctrl.py b/tests/TestSuite_link_flow= ctrl.py > index 0057b46..8961512 100644 > --- a/tests/TestSuite_link_flowctrl.py > +++ b/tests/TestSuite_link_flowctrl.py > @@ -149,7 +149,15 @@ class TestLinkFlowctrl(TestCase): > tgenInput =3D [] > tgenInput.append((tester_tx_port, tester_rx_port, "test.pcap")) >=20 > - self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 > mac_ctrl_frame_fwd %s autoneg %s %d " % ( > + if (self.nic in ["cavium_a063"]): > + self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 1 > autoneg %s %d " % ( > + flow_control, > + flow_control, > + flow_control, > + self.rx_port), > + "testpmd> ") > + else: > + self.dut.send_expect("set flow_ctrl rx %s tx %s 300 50 10 > + 1 mac_ctrl_frame_fwd %s autoneg %s %d " % ( > flow_control, > flow_control, > pause_frame_fwd, @@ -250,10 +258,14 @@ clas= s > TestLinkFlowctrl(TestCase): > PAUSE Frames must not be received by testpmd > """ >=20 > - pause_frames =3D [self.build_pause_frame(0), > - self.build_pause_frame(1), > - self.build_pause_frame(2), > - self.build_pause_frame(3)] > + if (self.nic in ["cavium_a063"]): > + pause_frames =3D [self.build_pause_frame(0), > + self.build_pause_frame(1)] > + else: > + pause_frames =3D [self.build_pause_frame(0), > + self.build_pause_frame(1), > + self.build_pause_frame(2), > + self.build_pause_frame(3)] >=20 > for frame in pause_frames: > port_stats =3D self.pause_frame_test(frame) @@ -265,10 +277,= 14 @@ > class TestLinkFlowctrl(TestCase): > PAUSE Frames must not be received by testpmd > """ >=20 > - pause_frames =3D [self.build_pause_frame(0), > - self.build_pause_frame(1), > - self.build_pause_frame(2), > - self.build_pause_frame(3)] > + if (self.nic in ["cavium_a063"]): > + pause_frames =3D [self.build_pause_frame(0), > + self.build_pause_frame(1)] > + else: > + pause_frames =3D [self.build_pause_frame(0), > + self.build_pause_frame(1), > + self.build_pause_frame(2), > + self.build_pause_frame(3)] >=20 > for frame in pause_frames: > port_stats =3D self.pause_frame_test(frame, flow_control=3D'= on') > -- > 1.8.3.1