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 55B92A2E1B for ; Wed, 4 Sep 2019 07:04:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 306A51EC1D; Wed, 4 Sep 2019 07:04:53 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 841B41BF69 for ; Wed, 4 Sep 2019 07:04:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2019 22:04:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,465,1559545200"; d="scan'208";a="184995283" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 03 Sep 2019 22:04:50 -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.439.0; Tue, 3 Sep 2019 22:04:50 -0700 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 3 Sep 2019 22:04:49 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.92]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.23]) with mapi id 14.03.0439.000; Wed, 4 Sep 2019 13:04:47 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "Wu, ChangqingX" , "dts@dpdk.org" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1]tests/pmd_stacked_bonded: set slave ports in right status Thread-Index: AQHVW89ROgmM2ROtgkqpsOrvrQ7XmKcMYRiAgA6jySA= Date: Wed, 4 Sep 2019 05:04:46 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB1BE66@SHSMSX101.ccr.corp.intel.com> References: <1566797447-122407-1-git-send-email-yufengx.mo@intel.com> <1566797447-122407-2-git-send-email-yufengx.mo@intel.com> In-Reply-To: <1566797447-122407-2-git-send-email-yufengx.mo@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiY2U4NDlhZDMtMTEyMi00ZmExLTgwY2QtMjcxZWJkN2QyOTQzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiY3V0MFFha0ZoZFlIRXhzc1h1aVJxUWprT3VJd0t5UnhSQ1wvblhLalY1TTRMd3JuVHk0d1A2YkRoMVdYNXhRbCsifQ== 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 V1]tests/pmd_stacked_bonded: set slave ports in right status 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 yufengmx > Sent: Monday, August 26, 2019 1:31 PM > To: Wu, ChangqingX ; dts@dpdk.org > Cc: Mo, YufengX > Subject: [dts] [PATCH V1]tests/pmd_stacked_bonded: set slave ports in rig= ht > status >=20 >=20 > port start all action implies the race condition. The right way is to sta= rt top > level bond port only, and let it propagate the start action to slave bond= ed > ports and its the real nics. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_pmd_stacked_bonded.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_pmd_stacked_bonded.py > b/tests/TestSuite_pmd_stacked_bonded.py > index e1ce01a..de126b9 100644 > --- a/tests/TestSuite_pmd_stacked_bonded.py > +++ b/tests/TestSuite_pmd_stacked_bonded.py > @@ -138,7 +138,10 @@ class TestBondingStacked(TestCase): > cmds =3D [ > ["port stop all", ''], > ["set portlist " + ",".join([str(port) for port in portList]= ), ''], > - ["port start all", ' ', 15]] > + # start top level bond port only, and let it propagate the s= tart > + # action to slave bond ports and its the real nics. > + ["port start {}".format(master_bond_port), ' ', 15] > + ] > self.bond_inst.d_console(cmds) > # blank space command is used to skip LSC event to avoid core du= mped > issue > time.sleep(5) > -- > 1.9.3