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 287F0A0093; Tue, 19 May 2020 04:00:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1F3FD1D515; Tue, 19 May 2020 04:00:43 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 688021D54F for ; Tue, 19 May 2020 04:00:41 +0200 (CEST) IronPort-SDR: JdJ0mZ2VnNPEMnmVFDx1OE0nBhBZJg3hE57rjiNCk/WU6Gj/KDxf4Bsofd8YWxxporAALNlJO/ nZrSe8JyyzBQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2020 19:00:40 -0700 IronPort-SDR: Qgh4epHdLrXnquVt3udqUBgTB1PyHShBFQCVlR1nq1iTw0x2MGNo4GjELu6YhO7O9KMbHlp/Sd dhA0aOz06pug== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,408,1583222400"; d="scan'208";a="267724535" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga006.jf.intel.com with ESMTP; 18 May 2020 19:00:40 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 18 May 2020 19:00:39 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 18 May 2020 19:00:39 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.178]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.80]) with mapi id 14.03.0439.000; Tue, 19 May 2020 10:00:37 +0800 From: "Tu, Lijuan" To: "Mo, YufengX" , "dts@dpdk.org" , "Chen, Zhaoyan" CC: "Mo, YufengX" Thread-Topic: [dts] [PATCH V1 1/1] tests/pmd_bonded_8023ad: update script by test plan change Thread-Index: AQHWKnzf7yumFH8cL06lyrRX+YyNO6iurZQw Date: Tue, 19 May 2020 02:00:36 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC3EDF9@SHSMSX101.ccr.corp.intel.com> References: <20200515055231.11341-1-yufengx.mo@intel.com> <20200515055231.11341-2-yufengx.mo@intel.com> In-Reply-To: <20200515055231.11341-2-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-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 1/1] tests/pmd_bonded_8023ad: update script by test plan change 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: Friday, May 15, 2020 1:53 PM > To: dts@dpdk.org; Chen, Zhaoyan > Cc: Mo, YufengX > Subject: [dts] [PATCH V1 1/1] tests/pmd_bonded_8023ad: update script by > test plan change >=20 >=20 > update script by test plan change. >=20 > Signed-off-by: yufengmx > --- > tests/TestSuite_pmd_bonded_8023ad.py | 25 ++++++++++++++++++++++++- > 1 file changed, 24 insertions(+), 1 deletion(-) >=20 > diff --git a/tests/TestSuite_pmd_bonded_8023ad.py > b/tests/TestSuite_pmd_bonded_8023ad.py > index 6267406..3707042 100644 > --- a/tests/TestSuite_pmd_bonded_8023ad.py > +++ b/tests/TestSuite_pmd_bonded_8023ad.py > @@ -94,7 +94,30 @@ class TestBonding8023AD(TestCase): > err_fmt =3D "link bonding mode 4 (802.3ad) set {0} failed" > self.verify(expected_msg in out, err_fmt.format(status)) >=20 > + def set_special_command(self, bond_port): > + cmds =3D [ > + "set bonding lacp dedicated_queues {} enable".format(bond_po= rt), > + "set allmulti 0 on", > + "set allmulti 1 on", > + "set allmulti {} on".format(bond_port), > + "set portlist {}".format(bond_port), ] > + [self.bond_inst.d_console([cmd, 'testpmd>', 15]) for cmd in > + cmds] > + > def set_8023ad_bonded(self, slaves, bond_mode, ignore=3DTrue): > + ''' set 802.3ad bonded mode for the specified bonding mode ''' > + specified_socket =3D self.dut.get_numa_id(slaves[0]) > + # create bonded device, add slaves in it > + bond_port =3D self.bond_inst.create_bonded_device(bond_mode, > specified_socket) > + if not ignore: > + # when no slave attached, mac should be 00:00:00:00:00:00 > + self.bonding_8023ad_check_macs_without_slaves(bond_port) > + # add slave > + self.bond_inst.add_slave(bond_port, False, '', *slaves) > + # set special command > + self.set_special_command(bond_port) > + return bond_port > + > + def set_8023ad_bonded2(self, slaves, bond_mode, ignore=3DTrue): > ''' set 802.3ad bonded mode for the specified bonding mode ''' > specified_socket =3D self.dut.get_numa_id(slaves[0]) > # create bonded device, add slaves in it @@ -332,7 +355,7 @@ cla= ss > TestBonding8023AD(TestCase): > for mode in self.DEDICATED_QUEUES: > try: > self.bond_inst.start_testpmd() > - bond_port =3D self.set_8023ad_bonded(slaves, bond_mode) > + bond_port =3D self.set_8023ad_bonded2(slaves, bond_mode) > self.set_8023ad_dedicated_queues(bond_port, mode) > except Exception as e: > check_results.append(e); print(traceback.format_exc()) > -- > 2.21.0