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 5C958A0093; Mon, 18 May 2020 03:18:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 262251D55D; Mon, 18 May 2020 03:18:16 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 0A0351D555 for ; Mon, 18 May 2020 03:18:13 +0200 (CEST) IronPort-SDR: IR1wiK7c8XwJcr49vKHTG3pUAaaGzKLgxqWEAEnglXTHeR/h57goHj1N2hGK6Ezt5hAes9ishy Z7ZUxaubTdTA== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2020 18:18:13 -0700 IronPort-SDR: jn0hKWK4vuJhrtmmk2fgshks36Iz7+LD5Y49+BXYPEjJP0Ei++VgLbQ2kxiPkR8sUWDW487aux ThDptk0RNosg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,405,1583222400"; d="scan'208";a="307960297" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 17 May 2020 18:18:13 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 17 May 2020 18:18:12 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.181]) by shsmsx102.ccr.corp.intel.com ([169.254.2.245]) with mapi id 14.03.0439.000; Mon, 18 May 2020 09:18:10 +0800 From: "Chen, Zhaoyan" To: "Mo, YufengX" , "dts@dpdk.org" CC: "Chen, Zhaoyan" Thread-Topic: [dts][PATCH V1 1/1] tests/pmd_bonded_8023ad: update script by test plan change Thread-Index: AQHWKnzUXtlibWlIlU6sR5KjzRdyMKitD0QQ Date: Mon, 18 May 2020 01:18:10 +0000 Message-ID: <9DEEADBC57E43F4DA73B571777FECECA41F94496@SHSMSX104.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" Acked-by: Zhaoyan Chen Regards, Zhaoyan Chen > -----Original Message----- > From: Mo, YufengX > 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