From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 949232C60 for ; Wed, 22 Aug 2018 10:44:49 +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; 22 Aug 2018 01:44:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,273,1531810800"; d="scan'208";a="77381711" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga003.jf.intel.com with ESMTP; 22 Aug 2018 01:44:39 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 01:44:39 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 01:44:39 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.205]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.240]) with mapi id 14.03.0319.002; Wed, 22 Aug 2018 16:44:37 +0800 From: "Tu, Lijuan" To: "Han, YingyaX" , "dts@dpdk.org" CC: "Han, YingyaX" Thread-Topic: [dts] [PATCH V1]tests/runtime_queue_number: fix the problem of sending packets and modprobe vfio-pci Thread-Index: AQHUOeEdSQYoYdpmlEywioQY9993cqTLc6tA Date: Wed, 22 Aug 2018 08:44:36 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20EEAAAF1@SHSMSX101.ccr.corp.intel.com> References: <1534919240-127455-1-git-send-email-yingyax.han@intel.com> In-Reply-To: <1534919240-127455-1-git-send-email-yingyax.han@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.0.400.15 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNWQxNmI2NzktZTk1OC00ZGZhLTlmNmYtNzk2NTVhMjNiNTA4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiXC9BR2lFSzFVWDhFMXFFTDFkMTErcE5Md05yb1dCSzZiaWNWMXFaNGZpMktcL3NiWWJKSnVGMFRDb2xjZ1NFNUo2In0= 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/runtime_queue_number: fix the problem of sending packets and modprobe vfio-pci 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: , X-List-Received-Date: Wed, 22 Aug 2018 08:44:50 -0000 Comments inline > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of han,yingya > Sent: Wednesday, August 22, 2018 2:27 PM > To: dts@dpdk.org > Cc: Han, YingyaX > Subject: [dts] [PATCH V1]tests/runtime_queue_number: fix the problem of > sending packets and modprobe vfio-pci >=20 > 256 exceeded the IP address range. >=20 > Signed-off-by: han,yingya > --- > tests/TestSuite_runtime_queue_number.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_runtime_queue_number.py > b/tests/TestSuite_runtime_queue_number.py > index 44aec06..7d7bc5b 100644 > --- a/tests/TestSuite_runtime_queue_number.py > +++ b/tests/TestSuite_runtime_queue_number.py > @@ -90,6 +90,7 @@ class TestRuntime_Queue_Number(TestCase): > # assigned number of VFs > self.dut.generate_sriov_vfs_by_port(self.dut_ports[0], vfs_num, > self.drivername) > self.sriov_vfs_port =3D > self.dut.ports_info[self.dut_ports[0]]['vfs_port'] > + self.dut.send_expect('modprobe vfio-pci', '#') [Lijuan] if vf doesn't use vfio, there is no need to insmod vfio-pci >=20 > try: > for port in self.sriov_vfs_port: > @@ -125,7 +126,7 @@ class TestRuntime_Queue_Number(TestCase): > """ > self.tester.scapy_foreground() > time.sleep(2) > - for i in range(256): > + for i in range(254): > packet =3D r'sendp([Ether(dst=3D"%s", > src=3Dget_if_hwaddr("%s"))/IP(src=3D"192.168.0.%d", dst=3D"192.168.0.%d")= ], > iface=3D"%s")' % ( > self.vf_mac, itf, i + 1, i + 2, itf) > self.tester.scapy_append(packet) @@ -160,7 +161,7 @@ > class TestRuntime_Queue_Number(TestCase): > m =3D scanner.search(line) > packet_rec =3D m.group(1) >=20 > - self.verify(packet_sumnum =3D=3D int(packet_rec) =3D=3D 256, "Th= ere are > some packets lost.") > + self.verify(packet_sumnum =3D=3D int(packet_rec) =3D=3D 254, "Th= ere are > + some packets lost.") >=20 > def test_set_valid_vf_max_qn(self): > """ > -- > 1.9.3