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 86717A0352; Tue, 5 Nov 2019 03:00:30 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 58ADB2C27; Tue, 5 Nov 2019 03:00:30 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 106162C02 for ; Tue, 5 Nov 2019 03:00:28 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Nov 2019 18:00:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,269,1569308400"; d="scan'208";a="220534827" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 04 Nov 2019 18:00:28 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 4 Nov 2019 18:00:27 -0800 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 4 Nov 2019 18:00:27 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.213]) by SHSMSX153.ccr.corp.intel.com ([169.254.12.215]) with mapi id 14.03.0439.000; Tue, 5 Nov 2019 10:00:25 +0800 From: "Tu, Lijuan" To: "Zeng, XiaoxiaoX" , "dts@dpdk.org" CC: "Zeng, XiaoxiaoX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_sriov_kvm:modify bug and increase compatibility Thread-Index: AQHVjfxNDZC+C7YnC0yBn8lcZ/OKS6d73ZCQ Date: Tue, 5 Nov 2019 02:00:25 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB5DD35@SHSMSX101.ccr.corp.intel.com> References: <20191029135733.17469-1-xiaoxiaox.zeng@intel.com> In-Reply-To: <20191029135733.17469-1-xiaoxiaox.zeng@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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzI4ZTk3OWMtM2E3YS00MDc2LTkxYjItN2Y5Y2Y2ZWRhZjdhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoieE1nMTAxK0c5dmV2NFN0THA2UlFcL2JpQkZcL3pvUGNQMGJtbEFPVDVFUHVMbHZ5eXNJU0FGN1B3S3BXenZYRDFSIn0= 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/TestSuite_sriov_kvm:modify bug and increase compatibility 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 Xiaoxiao Zeng > Sent: Tuesday, October 29, 2019 9:58 PM > To: dts@dpdk.org > Cc: Zeng, XiaoxiaoX > Subject: [dts] [PATCH V1] tests/TestSuite_sriov_kvm:modify bug and increa= se > compatibility >=20 > *.change -b to -w. > *.modify verify to suit more scenes. >=20 > Signed-off-by: Xiaoxiao Zeng > --- > tests/TestSuite_sriov_kvm.py | 13 ++++++------- > 1 file changed, 6 insertions(+), 7 deletions(-) >=20 > diff --git a/tests/TestSuite_sriov_kvm.py b/tests/TestSuite_sriov_kvm.py > index 51fdf68..546b01c 100644 > --- a/tests/TestSuite_sriov_kvm.py > +++ b/tests/TestSuite_sriov_kvm.py > @@ -314,8 +314,7 @@ class TestSriovKvm(TestCase): > if driver =3D=3D 'igb_uio': > # start testpmd with the two VFs on the host > self.host_testpmd =3D PmdOutput(self.dut) > - eal_param =3D '-b %(vf0)s -b %(vf1)s' % {'vf0': > self.sriov_vfs_port[0].pci, > - 'vf1': self.sriov= _vfs_port[1].pci} > + eal_param =3D '-w %s ' % self.dut.ports_info[0]['pci'] > self.host_testpmd.start_testpmd( > "1S/2C/2T", "--rxq=3D4 --txq=3D4", eal_param=3Deal_p= aram) > self.host_testpmd.execute_cmd('set fwd rxonly') @@ -638,= 7 +637,7 > @@ class TestSriovKvm(TestCase): > # verify vm1 receive packets > vm1_ret_stats =3D self.calculate_stats(vm1_start_stats, vm1_end_= stats) >=20 > - self.verify(vm1_ret_stats['RX-packets'] =3D=3D packet_num and > vm1_ret_stats['TX-packets'] =3D=3D packet_num, > + self.verify(vm1_ret_stats['RX-packets'] >=3D packet_num and > + vm1_ret_stats['TX-packets'] >=3D packet_num, > "Uplink mirror failed between VM0 and VM1!") >=20 > def test_two_vms_downlink_mirror(self): > @@ -809,7 +808,7 @@ class TestSriovKvm(TestCase): > self.set_port_pool_mirror(port_id_0, '0x1 dst-pool 1 on') > self.set_port_downlink_mirror(port_id_0, 'dst-pool 1 on') >=20 > - if self.nic.startswith('niantic'): > + if self.nic.startswith('niantic') or self.nic.startswith('sage')= : > self.set_port_uplink_mirror(port_id_0, 'dst-pool 1 on') >=20 > # get vm port stats > @@ -857,7 +856,7 @@ class TestSriovKvm(TestCase): > vm1_ret_stats =3D self.calculate_stats(vm1_start_stats, vm1_end_= stats) >=20 > try: > - if self.nic.startswith('niantic'): > + if self.nic.startswith('niantic') or self.nic.startswith('sa= ge'): > self.verify(vm0_ret_stats['RX-packets'] =3D=3D packet_nu= m and > vm1_ret_stats['RX-packets'] =3D=3D packet_num, > "vlan mirror failed between VM0 and VM1") > else: > @@ -886,8 +885,8 @@ class TestSriovKvm(TestCase): > # verify vm1 receive packets > vm0_ret_stats =3D self.calculate_stats(vm0_start_stats, vm0_end_= stats) > vm1_ret_stats =3D self.calculate_stats(vm1_start_stats, vm1_end_= stats) > - self.verify(vm0_ret_stats['RX-packets'] =3D=3D packet_num and > vm0_ret_stats['TX-packets'] =3D=3D packet_num and > - vm1_ret_stats['RX-packets'] =3D=3D packet_num, "upli= nk mirror failed > between VM0 and VM1") > + self.verify(vm0_ret_stats['RX-packets'] =3D=3D packet_num and > vm1_ret_stats['RX-packets'] =3D=3D packet_num, > + "uplink mirror failed between VM0 and VM1") >=20 > def test_two_vms_add_multi_exact_mac_on_vf(self): > port_id_0 =3D 0 > -- > 2.17.0